Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BrowserHeaders

Index

Constructors

  • Parameters

    • Optional init: ConstructorArg
    • Optional options: { splitValues: boolean }
      • splitValues: boolean

    Returns BrowserHeaders

Properties

headersMap: {}

Type declaration

  • [key: string]: string[]

Methods

  • append(key: string, value: string | string[]): void
  • Parameters

    • key: string
    • value: string | string[]

    Returns void

  • appendFromString(str: string): void
  • Parameters

    • str: string

    Returns void

  • delete(key: string, value?: string): void
  • Parameters

    • key: string
    • Optional value: string

    Returns void

  • forEach(callback: ((key: string, values: string[]) => void)): void
  • Parameters

    • callback: ((key: string, values: string[]) => void)
        • (key: string, values: string[]): void
        • Parameters

          • key: string
          • values: string[]

          Returns void

    Returns void

  • get(key: string): string[]
  • Parameters

    • key: string

    Returns string[]

  • has(key: string, value?: string): boolean
  • Parameters

    • key: string
    • Optional value: string

    Returns boolean

  • set(key: string, value: string | string[]): void
  • Parameters

    • key: string
    • value: string | string[]

    Returns void

  • Returns internal.Headers

Generated using TypeDoc