Preparing search index...
The search index is not available bun-types
Methods
append
append( name: string , value: string ) : void
Parameters
name: string
value: string
Returns void
append( name: string , value: string ) : void
Parameters
name: string
value: string
Returns void
delete
delete( name: string ) : void
Returns void
delete( name: string ) : void
Returns void
entries
entries( ) : IterableIterator < [ string , string ] >
Returns IterableIterator < [ string , string ] >
entries( ) : IterableIterator < [ string , string ] >
Returns IterableIterator < [ string , string ] >
for Each
for Each( 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
for Each( 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 ) : string
Returns string
get( name: string ) : string
Returns string
has
has( name: string ) : boolean
Returns boolean
has( name: string ) : boolean
Returns boolean
keys
keys( ) : IterableIterator < string >
Returns IterableIterator < string >
keys( ) : IterableIterator < string >
Returns IterableIterator < string >
set
set( name: string , value: string ) : void
Parameters
name: string
value: string
Returns void
set( name: string , value: string ) : void
Parameters
name: string
value: string
Returns void
values
values( ) : IterableIterator < string >
Returns IterableIterator < string >
values( ) : IterableIterator < string >
Returns IterableIterator < string >
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()
In all methods of this interface, header names are matched by case-insensitive byte sequence.