Headers
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:73
Implements
Section titled “Implements”SpecIterable
<[string
,string
]>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Headers(init?): Headers;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:74
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
init? | HeadersInit |
Returns
Section titled “Returns”Headers
Properties
Section titled “Properties”[iterator]()
Section titled “[iterator]()”readonly [iterator]: () => SpecIterableIterator<[string, string]>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:89
Returns
Section titled “Returns”SpecIterableIterator
<[string
, string
]>
Implementation of
Section titled “Implementation of”append()
Section titled “append()”readonly append: (name, value) => void;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:75
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
name | string |
value | string |
Returns
Section titled “Returns”void
delete()
Section titled “delete()”readonly delete: (name) => void;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:76
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
name | string |
Returns
Section titled “Returns”void
entries()
Section titled “entries()”readonly entries: () => SpecIterableIterator<[string, string]>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:88
Returns
Section titled “Returns”SpecIterableIterator
<[string
, string
]>
forEach()
Section titled “forEach()”readonly forEach: (callbackfn, thisArg?) => void;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:81
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
callbackfn | (value , key , iterable ) => void |
thisArg? | unknown |
Returns
Section titled “Returns”void
readonly get: (name) => null | string;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:77
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
name | string |
Returns
Section titled “Returns”null
| string
getSetCookie()
Section titled “getSetCookie()”readonly getSetCookie: () => string[];
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:80
Returns
Section titled “Returns”string
[]
readonly has: (name) => boolean;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:78
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
name | string |
Returns
Section titled “Returns”boolean
keys()
Section titled “keys()”readonly keys: () => SpecIterableIterator<string>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:86
Returns
Section titled “Returns”SpecIterableIterator
<string
>
readonly set: (name, value) => void;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:79
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
name | string |
value | string |
Returns
Section titled “Returns”void
values()
Section titled “values()”readonly values: () => SpecIterableIterator<string>;
Defined in: node_modules/.pnpm/undici-types@7.13.0/node_modules/undici-types/fetch.d.ts:87
Returns
Section titled “Returns”SpecIterableIterator
<string
>