Constructors
constructor
-
Parameters
-
Optional headers: string | {}
Methods
append
- append(name: string, value: string | string[]): HttpHeaders
-
Parameters
-
name: string
-
value: string | string[]
delete
- delete(name: string, value?: string | string[]): HttpHeaders
-
Parameters
-
name: string
-
Optional value: string | string[]
get
- get(name: string): string | null
-
Parameters
Returns string | null
getAll
- getAll(name: string): string[] | null
-
Parameters
Returns string[] | null
has
- has(name: string): boolean
-
Parameters
Returns boolean
set
- set(name: string, value: string | string[]): HttpHeaders
-
Parameters
-
name: string
-
value: string | string[]
Immutable set of Http headers, with lazy parsing.