@shopify/oxygen-workers-types
    Preparing search index...

    Class Headers

    This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs.  You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence.

    MDN Reference

    Index

    Constructors

    Methods

    • Returns IterableIterator<[key: string, value: string]>

    • Parameters

      • name: string
      • value: string

      Returns void

    • Parameters

      • name: string

      Returns void

    • Returns IterableIterator<[key: string, value: string]>

    • Type Parameters

      • This = unknown

      Parameters

      • callback: (this: This, value: string, key: string, parent: Headers) => void
      • OptionalthisArg: This

      Returns void

    • Parameters

      • name: string

      Returns null | string

    • Parameters

      • name: string

      Returns string[]

    • Parameters

      • name: string

      Returns boolean

    • Returns IterableIterator<string>

    • Parameters

      • name: string
      • value: string

      Returns void

    • Returns IterableIterator<string>