Constructors
constructor
- new AxiosHeaders(
headers?: string | AxiosHeaders | RawAxiosHeaders,
): AxiosHeaders
Methods
[iterator]
- "[iterator]"(): IterableIterator<[string, AxiosHeaderValue]>
Returns IterableIterator<[string, AxiosHeaderValue]>
clear
- clear(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
concat
- concat(
...targets: (undefined | null | string | AxiosHeaders | RawAxiosHeaders)[],
): AxiosHeaders Parameters
- ...targets: (undefined | null | string | AxiosHeaders | RawAxiosHeaders)[]
delete
- delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean
Parameters
- header: string | string[]
Optional
matcher: AxiosHeaderMatcher
Returns boolean
get
- get(headerName: string, parser: RegExp): null | RegExpExecArray
Parameters
- headerName: string
- parser: RegExp
Returns null | RegExpExecArray
- get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue
Parameters
- headerName: string
Optional
matcher: true | AxiosHeaderParser
getAccept
- getAccept(parser?: RegExp): null | RegExpExecArray
Returns null | RegExpExecArray
- getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
Parameters
Optional
matcher: AxiosHeaderMatcher
getAuthorization
- getAuthorization(parser?: RegExp): null | RegExpExecArray
Returns null | RegExpExecArray
- getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
Parameters
Optional
matcher: AxiosHeaderMatcher
getContentEncoding
- getContentEncoding(parser?: RegExp): null | RegExpExecArray
Returns null | RegExpExecArray
- getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
Parameters
Optional
matcher: AxiosHeaderMatcher
getContentLength
- getContentLength(parser?: RegExp): null | RegExpExecArray
Returns null | RegExpExecArray
- getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
Parameters
Optional
matcher: AxiosHeaderMatcher
getContentType
- getContentType(parser?: RegExp): null | RegExpExecArray
Returns null | RegExpExecArray
- getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
Parameters
Optional
matcher: AxiosHeaderMatcher
getUserAgent
- getUserAgent(parser?: RegExp): null | RegExpExecArray
Returns null | RegExpExecArray
- getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue
Parameters
Optional
matcher: AxiosHeaderMatcher
has
- has(header: string, matcher?: AxiosHeaderMatcher): boolean
Parameters
- header: string
Optional
matcher: AxiosHeaderMatcher
Returns boolean
hasAccept
- hasAccept(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
hasAuthorization
- hasAuthorization(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
hasContentEncoding
- hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
hasContentLength
- hasContentLength(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
hasContentType
- hasContentType(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
hasUserAgent
- hasUserAgent(matcher?: AxiosHeaderMatcher): boolean
Parameters
Optional
matcher: AxiosHeaderMatcher
Returns boolean
normalize
- normalize(format: boolean): AxiosHeaders
set
- set(
headerName?: string,
value?: AxiosHeaderValue,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders Parameters
Optional
headerName: stringOptional
value: AxiosHeaderValueOptional
rewrite: boolean | AxiosHeaderMatcher
- set(
headers?: string | AxiosHeaders | RawAxiosHeaders,
rewrite?: boolean,
): AxiosHeaders Parameters
Optional
headers: string | AxiosHeaders | RawAxiosHeadersOptional
rewrite: boolean
setAccept
- setAccept(
value: AxiosHeaderValue,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders
setAuthorization
- setAuthorization(
value: AxiosHeaderValue,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders
setContentEncoding
- setContentEncoding(
value: AxiosHeaderValue,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders
setContentLength
- setContentLength(
value: AxiosHeaderValue,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders
setContentType
- setContentType(
value: ContentType,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders Parameters
- value: ContentType
Optional
rewrite: boolean | AxiosHeaderMatcher
setUserAgent
- setUserAgent(
value: AxiosHeaderValue,
rewrite?: boolean | AxiosHeaderMatcher,
): AxiosHeaders
toJSON
- toJSON(asStrings?: boolean): RawAxiosHeaders
Parameters
Optional
asStrings: boolean
Returns RawAxiosHeaders
Static
accessor
- accessor(header: string | string[]): AxiosHeaders
Parameters
- header: string | string[]
Static
concat
- concat(
...targets: (undefined | null | string | AxiosHeaders | RawAxiosHeaders)[],
): AxiosHeaders Parameters
- ...targets: (undefined | null | string | AxiosHeaders | RawAxiosHeaders)[]
Static
from
- from(thing?: string | AxiosHeaders | RawAxiosHeaders): AxiosHeaders