MLE Fetch API polyfill(mle-js-fetch)
    Preparing search index...

    Class Headers

    Index

    Constructors

    Methods

    • Add a value to the list corresponding to a header

      Parameters

      • key: string

        the name of the header

      • value: string

        the value to add

      Returns void

    • Remove all values for a header

      Parameters

      • name: string

        the name of the header

      Returns void

    • Returns Generator<[string, string]>

    • Parameters

      • func: (value: unknown, key: unknown, object: unknown) => void
      • OptionalthisValue: unknown

      Returns void

    • Retrieve a list of header values

      Parameters

      • key: string

        the name of the header

      Returns string

      a comma-separated list of values

    • Check if a value of a header has been set

      Parameters

      • name: string

        the name of the header

      Returns boolean

      true if the header has been set, false otherwise

    • Returns Generator<string>

    • Set or override the header value Both the key and the value have a limit of 32767 bytes

      Parameters

      • key: string

        the name of the header

      • value: string

        the new value

      Returns void

    • Returns Generator<string>