Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

__@iterator

  • __@iterator(): IterableIterator<[string, string]>
  • The Symbol.iterator well-known symbol specifies the default iterator for this Headers object

    Returns IterableIterator<[string, string]>

append

  • append(name: string, value: string): void
  • Appends a new value onto an existing header inside a Headers object, or adds the header if it does not already exist.

    Parameters

    • name: string
    • value: string

    Returns void

delete

  • delete(name: string): void
  • Deletes a header from a Headers object.

    Parameters

    • name: string

    Returns void

entries

  • entries(): IterableIterator<[string, string]>
  • Returns an iterator allowing to go through all key/value pairs contained in this Headers object. The both the key and value of each pairs are ByteString objects.

    Returns IterableIterator<[string, string]>

forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Parameters

    • callbackfn: function
        • (value: string, key: string, parent: this): void
        • Parameters

          • value: string
          • key: string
          • parent: this

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(name: string): string | null
  • Returns a ByteString sequence of all the values of a header within a Headers object with a given name.

    Parameters

    • name: string

    Returns string | null

has

  • has(name: string): boolean
  • Returns a boolean stating whether a Headers object contains a certain header.

    Parameters

    • name: string

    Returns boolean

keys

  • keys(): IterableIterator<string>
  • Returns an iterator allowing to go through all keys contained in this Headers object. The keys are ByteString objects.

    Returns IterableIterator<string>

set

  • set(name: string, value: string): void
  • Sets a new value for an existing header inside a Headers object, or adds the header if it does not already exist.

    Parameters

    • name: string
    • value: string

    Returns void

values

  • values(): IterableIterator<string>
  • Returns an iterator allowing to go through all values contained in this Headers object. The values are ByteString objects.

    Returns IterableIterator<string>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • 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

Generated using TypeDoc