Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IHeaders

preview

This API is in preview and not ready for production use. Expect breaking changes in the future. Represents http request/response headers. This is a subset of the Aurelia Headers class.

Hierarchy

  • IHeaders

Index

Methods

Methods

add

  • add(key: string, value: string): void
  • Adds a header.

    Parameters

    • key: string

      The header key.

    • value: string

      The header value.

    Returns void

clear

  • clear(): void
  • Clears the headers.

    Returns void

get

  • get(key: string): string
  • Gets a header value.

    Parameters

    • key: string

      The header key.

    Returns string

    The header value.

has

  • has(header: string): boolean
  • Determines whether or not the indicated header exists in the collection.

    Parameters

    • header: string

      The header key to check.

    Returns boolean

    True if it exists, false otherwise.