Constructors
constructor
- new AxiosHeaders(headers?): AxiosHeaders
Methods
clear
- clear(matcher?): boolean
Returns boolean
concat
- concat(...targets): AxiosHeaders
delete
- delete(header, matcher?): boolean
Returns boolean
get
- get(headerName, parser): null | RegExpExecArray
Parameters
- headerName: string
- parser: RegExp
Returns null | RegExpExecArray
- get(headerName, matcher?): AxiosHeaderValue
getAccept
- getAccept(parser?): null | RegExpExecArray
Returns null | RegExpExecArray
- getAccept(matcher?): AxiosHeaderValue
getAuthorization
- getAuthorization(parser?): null | RegExpExecArray
Returns null | RegExpExecArray
- getAuthorization(matcher?): AxiosHeaderValue
getContentEncoding
- getContentEncoding(parser?): null | RegExpExecArray
Returns null | RegExpExecArray
- getContentEncoding(matcher?): AxiosHeaderValue
getContentLength
- getContentLength(parser?): null | RegExpExecArray
Returns null | RegExpExecArray
- getContentLength(matcher?): AxiosHeaderValue
getContentType
- getContentType(parser?): null | RegExpExecArray
Returns null | RegExpExecArray
- getContentType(matcher?): AxiosHeaderValue
getUserAgent
- getUserAgent(parser?): null | RegExpExecArray
Returns null | 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
- set(headers?, rewrite?): AxiosHeaders
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