Interface Headers
interface Headers {
[iterator](): HeadersIterator<[string, string]>;
append(name: string, value: string): void;
delete(name: string): void;
entries(): HeadersIterator<[string, string]>;
forEach(callbackfn: ((value: string, key: string, parent: Headers) => void), thisArg?: any): void;
get(name: string): string;
getSetCookie(): string[];
has(name: string): boolean;
keys(): HeadersIterator<string>;
set(name: string, value: string): void;
values(): HeadersIterator<string>;
}
[iterator](): HeadersIterator<[string, string]>;
append(name: string, value: string): void;
delete(name: string): void;
entries(): HeadersIterator<[string, string]>;
forEach(callbackfn: ((value: string, key: string, parent: Headers) => void), thisArg?: any): void;
get(name: string): string;
getSetCookie(): string[];
has(name: string): boolean;
keys(): HeadersIterator<string>;
set(name: string, value: string): void;
values(): HeadersIterator<string>;
}
Methods
[iterator]
- [iterator](): HeadersIterator<[string, string]>
Returns HeadersIterator<[string, string]>
append
delete
entries
- entries(): HeadersIterator<[string, string]>
Returns an iterator allowing to go through all key/value pairs contained in this object.
Returns HeadersIterator<[string, string]>
forEach
get
getSetCookie
has
keys
- keys(): HeadersIterator<string>
Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.
Returns HeadersIterator<string>
set
values
- values(): HeadersIterator<string>
Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
Returns HeadersIterator<string>
MDN Reference