Constructors
constructor
-
Parameters
-
Optional headersInit: HeadersInit
Methods
[Symbol.iterator]
- [Symbol.iterator](): IterableIterator<[string, string]>
-
Returns IterableIterator<[string, string]>
append
-
Parameters
-
name: string
-
value: string
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
-
parent: Headers
Returns void
-
Optional thisArg: any
Returns void
get
- get(name: string): string | null
-
Parameters
Returns string | null
has
- has(name: string): boolean
-
Parameters
Returns boolean
keys
- keys(): IterableIterator<string>
-
Returns IterableIterator<string>
set
-
Parameters
-
name: string
-
value: string
values
- values(): IterableIterator<string>
-
Returns IterableIterator<string>
Identical to the native Headers interface except that all mutable methods instead return a new
ImmutableHeaders
.