# Interface CreateAxiosDefaults<D>

Construct a type with the properties of T except for those in type K.

interface CreateAxiosDefaults< D = any> {
adapter ?: AxiosAdapterConfig | AxiosAdapterConfig [];
allowAbsoluteUrls ?: boolean;
auth ?: AxiosBasicCredentials ;
baseURL ?: string;
beforeRedirect ?: (
options: Record <string, any>,
responseDetails: {
headers: Record <string, string>;
statusCode: HttpStatusCode ;
},
) => void;
cancelToken ?: CancelToken ;
data ?: D ;
decompress ?: boolean;
env ?: { FormData?: new (...args: any[]) => object };
family ?: AddressFamily ;
fetchOptions ?: Record <string, any>;
formSerializer ?: FormSerializerOptions ;
headers ?:
| AxiosHeaders
| Partial < HeadersDefaults >
| Partial <
RawAxiosHeaders & {
Accept: AxiosHeaderValue ;
Authorization: AxiosHeaderValue ;
"Content-Encoding": AxiosHeaderValue ;
"Content-Length": AxiosHeaderValue ;
"User-Agent": AxiosHeaderValue ;
} & { "Content-Type": ContentType },
>;
httpAgent ?: any;
httpsAgent ?: any;
insecureHTTPParser ?: boolean;
lookup ?:
| (
(
hostname: string,
options: object,
cb: (
err: null | Error,
address: LookupAddress | LookupAddress [],
family?: AddressFamily ,
) => void,
) => void
)
| (
(
hostname: string,
options: object,
) => Promise<
| LookupAddress
| [
address: LookupAddressEntry
| LookupAddressEntry [],
family?: AddressFamily ,
],
>
);
maxBodyLength ?: number;
maxContentLength ?: number;
maxRate ?: number | [number, number];
maxRedirects ?: number;
method ?: string;
onDownloadProgress ?: (progressEvent: AxiosProgressEvent ) => void;
onUploadProgress ?: (progressEvent: AxiosProgressEvent ) => void;
params ?: any;
paramsSerializer ?: ParamsSerializerOptions | CustomParamsSerializer ;
proxy ?: false | AxiosProxyConfig ;
responseEncoding ?: string;
responseType ?: ResponseType ;
signal ?: GenericAbortSignal ;
socketPath ?: null | string;
timeout ?: number;
timeoutErrorMessage ?: string;
transformRequest ?: AxiosRequestTransformer | AxiosRequestTransformer [];
transformResponse ?: AxiosResponseTransformer | AxiosResponseTransformer [];
transitional ?: TransitionalOptions ;
transport ?: any;
url ?: string;
validateStatus ?: null | ((status: number) => boolean);
withCredentials ?: boolean;
withXSRFToken ?:
| boolean
| ((config: InternalAxiosRequestConfig ) => undefined | boolean);
xsrfCookieName ?: string;
xsrfHeaderName ?: string;
}

#### Type Parameters

- D = any

#### Hierarchy (View Summary)

- Omit < AxiosRequestConfig < D >, "headers">
  - CreateAxiosDefaults

- Defined in node_modules/axios/index.d.ts:390

##### Index

### Properties

adapter?
allowAbsoluteUrls?
auth?
baseURL?
beforeRedirect?
cancelToken?
data?
decompress?
env?
family?
fetchOptions?
formSerializer?
headers?
httpAgent?
httpsAgent?
insecureHTTPParser?
lookup?
maxBodyLength?
maxContentLength?
maxRate?
maxRedirects?
method?
onDownloadProgress?
onUploadProgress?
params?
paramsSerializer?
proxy?
responseEncoding?
responseType?
signal?
socketPath?
timeout?
timeoutErrorMessage?
transformRequest?
transformResponse?
transitional?
transport?
url?
validateStatus?
withCredentials?
withXSRFToken?
xsrfCookieName?
xsrfHeaderName?

## Properties

### `Optional` adapter

adapter?: AxiosAdapterConfig | AxiosAdapterConfig []

Inherited from Omit.adapter

- Defined in node_modules/axios/index.d.ts:330

### `Optional` allowAbsoluteUrls

allowAbsoluteUrls?: boolean

Inherited from Omit.allowAbsoluteUrls

- Defined in node_modules/axios/index.d.ts:320

### `Optional` auth

auth?: AxiosBasicCredentials

Inherited from Omit.auth

- Defined in node_modules/axios/index.d.ts:331

### `Optional` baseURL

baseURL?: string

Inherited from Omit.baseURL

- Defined in node_modules/axios/index.d.ts:319

### `Optional` beforeRedirect

beforeRedirect?: (
options: Record <string, any>,
responseDetails: {
headers: Record <string, string>;
statusCode: HttpStatusCode ;
},
) => void

Inherited from Omit.beforeRedirect

- Defined in node_modules/axios/index.d.ts:343

### `Optional` cancelToken

cancelToken?: CancelToken

Inherited from Omit.cancelToken

- Defined in node_modules/axios/index.d.ts:349

### `Optional` data

data?: D

Inherited from Omit.data

- Defined in node_modules/axios/index.d.ts:326

### `Optional` decompress

decompress?: boolean

Inherited from Omit.decompress

- Defined in node_modules/axios/index.d.ts:350

### `Optional` env

env?: { FormData?: new (...args: any[]) => object }

Inherited from Omit.env

- Defined in node_modules/axios/index.d.ts:354

### `Optional` family

family?: AddressFamily

Inherited from Omit.family

- Defined in node_modules/axios/index.d.ts:358

### `Optional` fetchOptions

fetchOptions?: Record <string, any>

Inherited from Omit.fetchOptions

- Defined in node_modules/axios/index.d.ts:362

### `Optional` formSerializer

formSerializer?: FormSerializerOptions

Inherited from Omit.formSerializer

- Defined in node_modules/axios/index.d.ts:357

### `Optional` headers

headers?:
| AxiosHeaders
| Partial < HeadersDefaults >
| Partial <
RawAxiosHeaders & {
Accept: AxiosHeaderValue ;
Authorization: AxiosHeaderValue ;
"Content-Encoding": AxiosHeaderValue ;
"Content-Length": AxiosHeaderValue ;
"User-Agent": AxiosHeaderValue ;
} & { "Content-Type": ContentType },
>

- Defined in node_modules/axios/index.d.ts:391

### `Optional` httpAgent

httpAgent?: any

Inherited from Omit.httpAgent

- Defined in node_modules/axios/index.d.ts:346

### `Optional` httpsAgent

httpsAgent?: any

Inherited from Omit.httpsAgent

- Defined in node_modules/axios/index.d.ts:347

### `Optional` insecureHTTPParser

insecureHTTPParser?: boolean

Inherited from Omit.insecureHTTPParser

- Defined in node_modules/axios/index.d.ts:353

### `Optional` lookup

lookup?:
| (
(
hostname: string,
options: object,
cb: (
err: null | Error,
address: LookupAddress | LookupAddress [],
family?: AddressFamily ,
) => void,
) => void
)
| (
(
hostname: string,
options: object,
) => Promise<
| LookupAddress
| [
address: LookupAddressEntry
| LookupAddressEntry [],
family?: AddressFamily ,
],
>
)

Inherited from Omit.lookup

- Defined in node_modules/axios/index.d.ts:359

### `Optional` maxBodyLength

maxBodyLength?: number

Inherited from Omit.maxBodyLength

- Defined in node_modules/axios/index.d.ts:340

### `Optional` maxContentLength

maxContentLength?: number

Inherited from Omit.maxContentLength

- Defined in node_modules/axios/index.d.ts:338

### `Optional` maxRate

maxRate?: number | [number, number]

Inherited from Omit.maxRate

- Defined in node_modules/axios/index.d.ts:342

### `Optional` maxRedirects

maxRedirects?: number

Inherited from Omit.maxRedirects

- Defined in node_modules/axios/index.d.ts:341

### `Optional` method

method?: string

Inherited from Omit.method

- Defined in node_modules/axios/index.d.ts:318

### `Optional` onDownloadProgress

onDownloadProgress?: (progressEvent: AxiosProgressEvent ) => void

Inherited from Omit.onDownloadProgress

- Defined in node_modules/axios/index.d.ts:337

### `Optional` onUploadProgress

onUploadProgress?: (progressEvent: AxiosProgressEvent ) => void

Inherited from Omit.onUploadProgress

- Defined in node_modules/axios/index.d.ts:336

### `Optional` params

params?: any

Inherited from Omit.params

- Defined in node_modules/axios/index.d.ts:324

### `Optional` paramsSerializer

paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer

Inherited from Omit.paramsSerializer

- Defined in node_modules/axios/index.d.ts:325

### `Optional` proxy

proxy?: false | AxiosProxyConfig

Inherited from Omit.proxy

- Defined in node_modules/axios/index.d.ts:348

### `Optional` responseEncoding

responseEncoding?: string

Inherited from Omit.responseEncoding

- Defined in node_modules/axios/index.d.ts:333

### `Optional` responseType

responseType?: ResponseType

Inherited from Omit.responseType

- Defined in node_modules/axios/index.d.ts:332

### `Optional` signal

signal?: GenericAbortSignal

Inherited from Omit.signal

- Defined in node_modules/axios/index.d.ts:352

### `Optional` socketPath

socketPath?: null | string

Inherited from Omit.socketPath

- Defined in node_modules/axios/index.d.ts:344

### `Optional` timeout

timeout?: number

Inherited from Omit.timeout

- Defined in node_modules/axios/index.d.ts:327

### `Optional` timeoutErrorMessage

timeoutErrorMessage?: string

Inherited from Omit.timeoutErrorMessage

- Defined in node_modules/axios/index.d.ts:328

### `Optional` transformRequest

transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer []

Inherited from Omit.transformRequest

- Defined in node_modules/axios/index.d.ts:321

### `Optional` transformResponse

transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer []

Inherited from Omit.transformResponse

- Defined in node_modules/axios/index.d.ts:322

### `Optional` transitional

transitional?: TransitionalOptions

Inherited from Omit.transitional

- Defined in node_modules/axios/index.d.ts:351

### `Optional` transport

transport?: any

Inherited from Omit.transport

- Defined in node_modules/axios/index.d.ts:345

### `Optional` url

url?: string

Inherited from Omit.url

- Defined in node_modules/axios/index.d.ts:317

### `Optional` validateStatus

validateStatus?: null | ((status: number) => boolean)

Inherited from Omit.validateStatus

- Defined in node_modules/axios/index.d.ts:339

### `Optional` withCredentials

withCredentials?: boolean

Inherited from Omit.withCredentials

- Defined in node_modules/axios/index.d.ts:329

### `Optional` withXSRFToken

withXSRFToken?:
| boolean
| ((config: InternalAxiosRequestConfig ) => undefined | boolean)

Inherited from Omit.withXSRFToken

- Defined in node_modules/axios/index.d.ts:361

### `Optional` xsrfCookieName

xsrfCookieName?: string

Inherited from Omit.xsrfCookieName

- Defined in node_modules/axios/index.d.ts:334

### `Optional` xsrfHeaderName

xsrfHeaderName?: string

Inherited from Omit.xsrfHeaderName

- Defined in node_modules/axios/index.d.ts:335