Interface Headers

    interface Headers {
        [iterator](): HeadersIterator<[string, string]>;
        append(name: string, value: string): void;
        delete(name: string): void;
        entries(): HeadersIterator<[string, string]>;
        forEach(callbackfn: ((value: string, key: string, parent: Headers) => void), thisArg?: any): void;
        get(name: string): string;
        getSetCookie(): string[];
        has(name: string): boolean;
        keys(): HeadersIterator<string>;
        set(name: string, value: string): void;
        values(): HeadersIterator<string>;
    }

    Methods

    • Parameters

      • name: string
      • value: string

      Returns void

    • Parameters

      • name: string

      Returns void

    • Returns an iterator allowing to go through all key/value pairs contained in this object.

      Returns HeadersIterator<[string, string]>

    • Parameters

      • callbackfn: ((value: string, key: string, parent: Headers) => void)
          • (value, key, parent): void
          • Parameters

            • value: string
            • key: string
            • parent: Headers

            Returns void

      • OptionalthisArg: any

      Returns void

    • Parameters

      • name: string

      Returns string

    • Parameters

      • name: string

      Returns boolean

    • Returns an iterator allowing to go through all keys of the key/value pairs contained in this object.

      Returns HeadersIterator<string>

    • Parameters

      • name: string
      • value: string

      Returns void

    • Returns an iterator allowing to go through all values of the key/value pairs contained in this object.

      Returns HeadersIterator<string>