Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Headers

Package version

Hierarchy

  • Headers

Implements

  • Iterable<[string, string]>

Index

Constructors

constructor

  • Parameters

    Returns Headers

Methods

__@iterator

  • __@iterator(): Iterator<[string, string]>
  • Returns Iterator<[string, string]>

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(): Iterator<[string, string]>
  • Returns Iterator<[string, string]>

forEach

  • forEach(callback: function): void
  • Parameters

    • callback: function
        • (value: string, name: string): void
        • Parameters

          • value: string
          • name: string

          Returns void

    Returns void

get

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

    • name: string

    Returns string | null

getAll

  • getAll(name: string): string[]
  • Parameters

    • name: string

    Returns string[]

has

  • has(name: string): boolean
  • Parameters

    • name: string

    Returns boolean

keys

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

raw

  • raw(): object
  • Returns object

    • [k: string]: string[]

set

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

    • name: string
    • value: string

    Returns void

values

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

Generated using TypeDoc