@launchdarkly/eventsource - v0.2.5
    Preparing search index...

    Interface FetchHeaders

    The response headers. The member set mirrors the subset of the standard Headers class that this package reads.

    interface FetchHeaders {
        entries?(): Iterable<[string, string]>;
        forEach?(callback: (value: string, key: string) => void): void;
        get(name: string): string | null;
    }
    Index
    • Returns an iterator over the header name-value pairs, like the standard Headers.entries. It is the iteration fallback when forEach is absent.

      Returns Iterable<[string, string]>

    • Executes the callback once for each header, with the value first. It is optional so a transport whose response headers expose no iteration can still satisfy the type.

      Parameters

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

      Returns void

    • Returns the value of a header, or null when the response carries no such header. The lookup is case-insensitive, like the standard Headers.get. The client validates the declared content type through it.

      Parameters

      • name: string

      Returns string | null