Constructors
constructor
Parameters
Optional options: { splitValues: boolean }
Properties
headersMap
headersMap: {}
Methods
append
- append(key: string, value: string | string[]): void
Parameters
key: string
value: string | string[]
Returns void
appendFromString
- appendFromString(str: string): void
Parameters
Returns void
delete
- delete(key: string, value?: string): void
Parameters
key: string
Optional value: string
Returns void
forEach
- forEach(callback: ((key: string, values: string[]) => void)): void
Parameters
callback: ((key: string, values: string[]) => void)
- (key: string, values: string[]): void
Parameters
key: string
values: string[]
Returns void
Returns void
get
- get(key: string): string[]
Parameters
Returns string[]
has
- has(key: string, value?: string): boolean
Parameters
key: string
Optional value: string
Returns boolean
set
- set(key: string, value: string | string[]): void
Parameters
key: string
value: string | string[]
Returns void
toHeaders