Hierarchy

  • Headers

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], any, unknown>

  • Parameters

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

          • value: unknown
          • key: unknown
          • object: unknown

          Returns void

    • Optional thisValue: unknown

    Returns void

  • Retrieve a list of header values

    Returns

    a comma-separated list of values

    Parameters

    • key: string

      the name of the header

    Returns string

  • Check if a value of a header has been set

    Returns

    true if the header has been set, false otherwise

    Parameters

    • name: string

      the name of the header

    Returns boolean

  • Returns Generator<string, any, unknown>

  • 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, any, unknown>