Methods
[iterator]
- [iterator](): Iterator<[string, string], any, undefined>
-
Returns Iterator<[string, string], any, undefined>
append
- append(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
delete
- delete(name: string): void
-
Returns void
entries
- entries(): IterableIterator<[string, string]>
-
Returns IterableIterator<[string, string]>
forEach
- forEach(callbackfn: ((value: string, key: string, parent: Headers) => void), thisArg?: any): void
-
Parameters
-
callbackfn: ((value: string, key: string, parent: Headers) => void)
-
- (value: string, key: string, parent: Headers): void
-
Parameters
-
value: string
-
key: string
-
Returns void
-
Optional
thisArg: any
Returns void
get
- get(name: string): null | string
-
Returns null | string
has
- has(name: string): boolean
-
Returns boolean
keys
- keys(): IterableIterator<string>
-
Returns IterableIterator<string>
set
- set(name: string, value: string): void
-
Parameters
-
name: string
-
value: string
Returns void
values
- values(): IterableIterator<[string]>
-
Returns IterableIterator<[string]>
The Headers class as specified by WHATWG
See
Headers on MDN