Options
All
  • Public
  • Public/Protected
  • All
Menu

The Headers class as specified by WHATWG

see

Headers on MDN

Hierarchy

  • Headers

Implements

  • Iterable<[string, string]>

Index

Constructors

constructor

Methods

[Symbol.iterator]

  • [Symbol.iterator](): Iterator<[string, string], any, undefined>
  • Returns Iterator<[string, string], any, undefined>

append

  • append(name: string, value: string): void
  • Parameters

    • name: string
    • value: string

    Returns void

delete

  • delete(name: string): void
  • Parameters

    • name: string

    Returns void

entries

  • entries(): IterableIterator<[string, string]>
  • Returns IterableIterator<[string, string]>

forEach

  • forEach(callback: (value: string, name: string) => void): void
  • Parameters

    • callback: (value: string, name: string) => void
        • (value: string, name: string): void
        • Parameters

          • value: string
          • name: string

          Returns void

    Returns void

get

  • get(name: string): string
  • Parameters

    • name: string

    Returns string

has

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

keys

  • keys(): IterableIterator<string>
  • Returns IterableIterator<string>

set

  • set(name: string, value: string): void
  • Parameters

    • name: string
    • value: string

    Returns void

values

  • values(): IterableIterator<[string]>
  • Returns IterableIterator<[string]>

Legend

  • Constructor
  • Property
  • Method
  • Accessor
  • Property
  • Method

Generated using TypeDoc