Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ImmutableHeaders

Identical to the native Headers interface except that all mutable methods instead return a new ImmutableHeaders.

Hierarchy

  • ImmutableHeaders

Implements

  • {}
  • {}

Index

Constructors

constructor

  • Parameters

    • Optional headersInit: HeadersInit

    Returns ImmutableHeaders

Methods

[Symbol.iterator]

  • [Symbol.iterator](): IterableIterator<[string, string]>
  • Returns IterableIterator<[string, string]>

append

  • Parameters

    • name: string
    • value: string

    Returns ImmutableHeaders

delete

entries

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

forEach

  • forEach(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
          • parent: Headers

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get(name: string): string | null
  • Parameters

    • name: string

    Returns string | null

has

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

keys

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

set

  • Parameters

    • name: string
    • value: string

    Returns ImmutableHeaders

values

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

Generated using TypeDoc