Classes
Exported classes in the pinned commit e6b79d9cef79.
| Class | Members | Summary |
|---|---|---|
AxiosHeaders | 31 | — |
AxiosError | 1 | — |
CanceledError | 0 | — |
Axios | 13 | — |
AxiosHeaders
Class exported from the pinned source.
| Member | Returns | Summary |
|---|---|---|
set | AxiosHeaders | — |
get | AxiosHeaderParameters | — |
has | boolean | — |
delete | boolean | — |
clear | boolean | — |
normalize | AxiosHeaders | — |
concat | AxiosHeaders | — |
toJSON | Record<string, string> | — |
from | AxiosHeaders | — |
parseParameters | AxiosHeaderParameters | — |
accessor | AxiosHeaders | — |
setContentType | AxiosHeaders | — |
getContentType | `RegExpExecArray | null` |
hasContentType | boolean | — |
setContentLength | AxiosHeaders | — |
getContentLength | `RegExpExecArray | null` |
hasContentLength | boolean | — |
setAccept | AxiosHeaders | — |
getAccept | `RegExpExecArray | null` |
hasAccept | boolean | — |
setUserAgent | AxiosHeaders | — |
getUserAgent | `RegExpExecArray | null` |
hasUserAgent | boolean | — |
setContentEncoding | AxiosHeaders | — |
getContentEncoding | `RegExpExecArray | null` |
hasContentEncoding | boolean | — |
setAuthorization | AxiosHeaders | — |
getAuthorization | `RegExpExecArray | null` |
hasAuthorization | boolean | — |
getSetCookie | string[] | — |
toString | string | — |
set
No doc comment in the pinned source.
set(headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersget
No doc comment in the pinned source.
get(headerName: string, parser: typeof AxiosHeaders.parseParameters): AxiosHeaderParametershas
No doc comment in the pinned source.
has(header: string, matcher?: AxiosHeaderMatcher): booleandelete
No doc comment in the pinned source.
delete(header: string | string[], matcher?: AxiosHeaderMatcher): booleanclear
No doc comment in the pinned source.
clear(matcher?: AxiosHeaderMatcher): booleannormalize
No doc comment in the pinned source.
normalize(format: boolean): AxiosHeadersconcat
No doc comment in the pinned source.
concat(...targets: Array<AxiosHeaders | RawAxiosHeaders | string | undefined | null>): AxiosHeaderstoJSON
No doc comment in the pinned source.
toJSON(asStrings: true): Record<string, string>from
No doc comment in the pinned source.
staticfrom(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeadersparseParameters
No doc comment in the pinned source.
staticparseParameters(value: AxiosHeaderValue): AxiosHeaderParametersaccessor
No doc comment in the pinned source.
staticaccessor(header: string | string[]): AxiosHeaderssetContentType
No doc comment in the pinned source.
setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersgetContentType
No doc comment in the pinned source.
getContentType(parser?: RegExp): RegExpExecArray | nullhasContentType
No doc comment in the pinned source.
hasContentType(matcher?: AxiosHeaderMatcher): booleansetContentLength
No doc comment in the pinned source.
setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersgetContentLength
No doc comment in the pinned source.
getContentLength(parser?: RegExp): RegExpExecArray | nullhasContentLength
No doc comment in the pinned source.
hasContentLength(matcher?: AxiosHeaderMatcher): booleansetAccept
No doc comment in the pinned source.
setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersgetAccept
No doc comment in the pinned source.
getAccept(parser?: RegExp): RegExpExecArray | nullhasAccept
No doc comment in the pinned source.
hasAccept(matcher?: AxiosHeaderMatcher): booleansetUserAgent
No doc comment in the pinned source.
setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersgetUserAgent
No doc comment in the pinned source.
getUserAgent(parser?: RegExp): RegExpExecArray | nullhasUserAgent
No doc comment in the pinned source.
hasUserAgent(matcher?: AxiosHeaderMatcher): booleansetContentEncoding
No doc comment in the pinned source.
setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersgetContentEncoding
No doc comment in the pinned source.
getContentEncoding(parser?: RegExp): RegExpExecArray | nullhasContentEncoding
No doc comment in the pinned source.
hasContentEncoding(matcher?: AxiosHeaderMatcher): booleansetAuthorization
No doc comment in the pinned source.
setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeadersgetAuthorization
No doc comment in the pinned source.
getAuthorization(parser?: RegExp): RegExpExecArray | nullhasAuthorization
No doc comment in the pinned source.
hasAuthorization(matcher?: AxiosHeaderMatcher): booleangetSetCookie
No doc comment in the pinned source.
getSetCookie(): string[]toString
No doc comment in the pinned source.
toString(): stringAxiosError
Class exported from the pinned source.
| Member | Returns | Summary |
|---|---|---|
from | AxiosError<T, D, P> | — |
from
No doc comment in the pinned source.
staticfrom(error: Error | unknown, code?: string, config?: InternalAxiosRequestConfig<D, P>, request?: any, response?: AxiosResponse<T, D, {}, P>, customProps?: object): AxiosError<T, D, P>CanceledError
Class exported from the pinned source.
| Member | Returns | Summary |
|---|
Axios
Class exported from the pinned source.
| Member | Returns | Summary |
|---|---|---|
getUri | string | — |
request | Promise<AxiosResponseResult<T, R, D, P>> | — |
get | Promise<AxiosResponseResult<T, R, D, P>> | — |
delete | Promise<AxiosResponseResult<T, R, D, P>> | — |
head | Promise<AxiosResponseResult<T, R, D, P>> | — |
options | Promise<AxiosResponseResult<T, R, D, P>> | — |
post | Promise<AxiosResponseResult<T, R, D, P>> | — |
put | Promise<AxiosResponseResult<T, R, D, P>> | — |
patch | Promise<AxiosResponseResult<T, R, D, P>> | — |
postForm | Promise<AxiosResponseResult<T, R, D, P>> | — |
putForm | Promise<AxiosResponseResult<T, R, D, P>> | — |
patchForm | Promise<AxiosResponseResult<T, R, D, P>> | — |
query | Promise<AxiosResponseResult<T, R, D, P>> | — |
getUri
No doc comment in the pinned source.
getUri(config?: AxiosRequestConfig): stringrequest
No doc comment in the pinned source.
request(config: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>get
No doc comment in the pinned source.
get(url: string, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>delete
No doc comment in the pinned source.
delete(url: string, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>head
No doc comment in the pinned source.
head(url: string, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>options
No doc comment in the pinned source.
options(url: string, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>post
No doc comment in the pinned source.
post(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>put
No doc comment in the pinned source.
put(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>patch
No doc comment in the pinned source.
patch(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>postForm
No doc comment in the pinned source.
postForm(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>putForm
No doc comment in the pinned source.
putForm(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>patchForm
No doc comment in the pinned source.
patchForm(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>query
No doc comment in the pinned source.
query(url: string, data?: D, config?: AxiosRequestConfig<D, P>): Promise<AxiosResponseResult<T, R, D, P>>