Constructors
constructor
Properties
Optional
_headers
_headers?: HeaderBuffer
_init
_init: string[]
Methods
_getHeaders
Returns HeaderBuffer
append
- append(name, value): Headers
Parameters
name: string
value: string
clone
- clone(): Headers
dehop
- dehop(): Headers
get
- get(name): null | string
Returns null | string
getAll
- getAll(name): string[]
Returns string[]
getLinks
- getLinks(): Record<string, Record<string, string>>
Returns Record<string, Record<string, string>>
remove
- remove(name): Headers
set
- set(name, value): Headers
Parameters
name: string
value: string
setLinks
- setLinks(links): Headers
Parameters
links: Record<string, string>
toArray
- toArray(): string[]
Returns string[]
toObject
- toObject(): Record<string, string>
Returns Record<string, string>
toString
- toString(): string
Returns string
HTTP header class.