Options
All
  • Public
  • Public/Protected
  • All
Menu

Class to create a set of HTTP headers

Hierarchy

  • default

Index

Constructors

Properties

[requestQuery]?: Dictionary<unknown>

Request query object (to interpolate values from headers)

Methods

  • [iterator](): IterableIterator<[string, string]>
  • append(name: string, value: CanArray<string>): void
  • Appends a new value into an existing header or adds the header if it does not already exist. To set multiple values for one header, provide its value as a list of values.

    Parameters

    Returns void

  • delete(name: string): void
  • entries(): IterableIterator<[string, string]>
  • get(name: string): null | string
  • has(name: string): boolean
  • keys(): IterableIterator<string>
  • normalizeHeaderName(name: string): string
  • normalizeHeaderValue(value: unknown): string
  • set(name: string, value: CanArray<string>): void
  • Sets a new header value by the specified name. To set multiple values for one header, provide its value as a list of values.

    Parameters

    Returns void

  • values(): IterableIterator<string>