Interface for headers that are part of a fetch response.

Hierarchy

  • Headers

Methods

  • Executes the callback once for each header, with the value first. Optional so existing implementations remain valid. The streaming client reads response headers through this method, or through Headers.entries when this method is absent.

    https://developer.mozilla.org/en-US/docs/Web/API/Headers/forEach

    Parameters

    • callback: ((value, key) => void)
        • (value, key): void
        • Parameters

          • value: string
          • key: string

          Returns void

    Returns void

  • Returns true if the header is present.

    Parameters

    • name: string

      The name of the header to check.

    Returns boolean

Generated using TypeDoc