Indexable
[key: string]: any
Constructors
constructor
- new AxiosHeaders(headers?): AxiosHeaders
Methods
clear
- clear(matcher?): boolean
Returns boolean
concat
- concat(...targets): AxiosHeaders
delete
- delete(header, matcher?): boolean
Parameters
header: string | string[]
Returns boolean
get
- get(headerName, parser): RegExpExecArray
Returns RegExpExecArray
- get(headerName, matcher?): AxiosHeaderValue
getAccept
- getAccept(parser?): RegExpExecArray
Returns RegExpExecArray
- getAccept(matcher?): AxiosHeaderValue
getAuthorization
- getAuthorization(parser?): RegExpExecArray
Returns RegExpExecArray
- getAuthorization(matcher?): AxiosHeaderValue
getContentEncoding
- getContentEncoding(parser?): RegExpExecArray
Returns RegExpExecArray
- getContentEncoding(matcher?): AxiosHeaderValue
getContentLength
- getContentLength(parser?): RegExpExecArray
Returns RegExpExecArray
- getContentLength(matcher?): AxiosHeaderValue
getContentType
- getContentType(parser?): RegExpExecArray
Returns RegExpExecArray
- getContentType(matcher?): AxiosHeaderValue
getUserAgent
- getUserAgent(parser?): RegExpExecArray
Returns RegExpExecArray
- getUserAgent(matcher?): AxiosHeaderValue
has
- has(header, matcher?): boolean
Returns boolean
hasAccept
- hasAccept(matcher?): boolean
Returns boolean
hasAuthorization
- hasAuthorization(matcher?): boolean
Returns boolean
hasContentEncoding
- hasContentEncoding(matcher?): boolean
Returns boolean
hasContentLength
- hasContentLength(matcher?): boolean
Returns boolean
hasContentType
- hasContentType(matcher?): boolean
Returns boolean
hasUserAgent
- hasUserAgent(matcher?): boolean
Returns boolean
normalize
- normalize(format): AxiosHeaders
set
- set(headerName?, value?, rewrite?): AxiosHeaders
Parameters
Optional
headerName: string
- set(headers?, rewrite?): AxiosHeaders
Parameters
Optional
rewrite: boolean
setAccept
- setAccept(value, rewrite?): AxiosHeaders
setAuthorization
- setAuthorization(value, rewrite?): AxiosHeaders
setContentEncoding
- setContentEncoding(value, rewrite?): AxiosHeaders
setContentLength
- setContentLength(value, rewrite?): AxiosHeaders
setContentType
- setContentType(value, rewrite?): AxiosHeaders
setUserAgent
- setUserAgent(value, rewrite?): AxiosHeaders
toJSON
- toJSON(asStrings?): RawAxiosHeaders
Parameters
Optional
asStrings: boolean
Static
accessor
- accessor(header): AxiosHeaders
Parameters
header: string | string[]
Static
concat
- concat(...targets): AxiosHeaders
Static
from
- from(thing?): AxiosHeaders