HttpRequestOptions
HTTPリクエストのオプション
See
Extends
AxiosRequestConfig
Properties
| Property | Type | Description |
|---|---|---|
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 | - |