メインコンテンツまでスキップ

HttpRequestOptions

HTTPリクエストのオプション

See

AxiosRequestConfig

Extends

  • AxiosRequestConfig

Properties

PropertyTypeDescription
adapter?AxiosAdapterConfig | AxiosAdapterConfig[]-
allowAbsoluteUrls?boolean-
auth?AxiosBasicCredentials-
baseURL?string-
beforeRedirect?(options, responseDetails) => void-
cancelToken?CancelToken-
data?any-
decompress?boolean-
env?object-
env.fetch?(input, init?) => Promise<Response>-
env.FormData?(...args) => object-
env.Request?(input, init?) => Request-
env.Response?(body?, init?) => Response-
family?AddressFamily-
fetchOptions?| Record<string, any> | Omit<RequestInit, "headers" | "body" | "method" | "signal">-
formSerializer?FormSerializerOptions-
headers?| AxiosHeaders | Partial<RawAxiosHeaders & object & object> & Partial<object & object>-
http2Options?Record<string, any> & object-
httpAgent?any-
httpsAgent?any-
httpVersion?1 | 2-
insecureHTTPParser?boolean-
lookup?| ((hostname, options, cb) => void) | ((hostname, options) => Promise< | LookupAddress | [LookupAddressEntry | LookupAddressEntry[], AddressFamily]>)-
maxBodyLength?number-
maxContentLength?number-
maxRate?number | [number, number]-
maxRedirects?numberリダイレクト上限
method?Methodリクエストオプション
onDownloadProgress?(progressEvent) => void-
onUploadProgress?(progressEvent) => void-
params?any-
paramsSerializer?ParamsSerializerOptions | CustomParamsSerializer-
parseReviver?(this, key, value) => any-
proxy?false | AxiosProxyConfig-
responseEncoding?StringLiteralsOrString<responseEncoding>-
responseType?ResponseType-
signal?GenericAbortSignal-
socketPath?string | null-
timeout?numberタイムアウト時間
timeoutErrorMessage?string-
transformRequest?AxiosRequestTransformer | AxiosRequestTransformer[]-
transformResponse?AxiosResponseTransformer | AxiosResponseTransformer[]-
transitional?TransitionalOptions-
transport?any-
url?string-
validateStatus?((status) => boolean) | null-
withCredentials?boolean-
withXSRFToken?boolean | ((config) => boolean | undefined)-
xsrfCookieName?string-
xsrfHeaderName?string-