Methods
append
append( name: string , value: string ) : void
Defined in opt/hostedtoolcache/node/12.18.1/x64/lib/node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9186
Parameters
name: string
value: string
Returns void
delete
delete( name: string ) : void
Defined in opt/hostedtoolcache/node/12.18.1/x64/lib/node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9187
Parameters
Returns void
forEach
forEach( callbackfn: ( value: string , key: string , parent: Headers ) => void , thisArg?: any ) : void
Defined in opt/hostedtoolcache/node/12.18.1/x64/lib/node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9191
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 ) : string | null
Defined in opt/hostedtoolcache/node/12.18.1/x64/lib/node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9188
Parameters
Returns string | null
has
has( name: string ) : boolean
Defined in opt/hostedtoolcache/node/12.18.1/x64/lib/node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9189
Parameters
Returns boolean
set
set( name: string , value: string ) : void
Defined in opt/hostedtoolcache/node/12.18.1/x64/lib/node_modules/typedoc/node_modules/typescript/lib/lib.dom.d.ts:9190
Parameters
name: string
value: string
Returns void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Type alias with type parameter
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.