Constructors
constructor
-
Parameters
-
Optional options: HttpHeaders | Headers | {} | string | undefined
Methods
append
-
Parameters
-
key: string
-
value: string
forEach
- forEach(callback: (value: string, key: string, parent: Headers) => void, thisArg?: any): void
-
Parameters
-
callback: (value: string, key: string, parent: Headers) => void
-
- (value: string, key: string, parent: Headers): void
-
Parameters
-
value: string
-
key: string
-
parent: Headers
Returns void
-
Optional thisArg: any
Returns void
get
- get(key: string): string | null
-
Parameters
Returns string | null
has
- has(key: string): boolean
-
Parameters
Returns boolean
serialize
- serialize(): Headers | string[][] | Record<string, string> | undefined
-
Returns Headers | string[][] | Record<string, string> | undefined
set
-
Parameters
-
key: string
-
value: string