KeysHttp: {
    auth: ActionContextKey<string>;
    fetch: ActionContextKey<{
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    }>;
    httpBodyTimeout: ActionContextKey<boolean>;
    httpRetryCount: ActionContextKey<number>;
    httpRetryDelay: ActionContextKey<number>;
    httpRetryOnServerError: ActionContextKey<number>;
    httpTimeout: ActionContextKey<number>;
    includeCredentials: ActionContextKey<boolean>;
} = ...

Type declaration

  • auth: ActionContextKey<string>

    Authentication for a source as a "username:password"-pair.

  • fetch: ActionContextKey<{
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    }>

    Fetch function implementation.

  • httpBodyTimeout: ActionContextKey<boolean>

    Makes the HTTP timeout not only apply until the response starts streaming in but until the response is fully consumed.

  • httpRetryCount: ActionContextKey<number>

    Number of retries to make on failed network calls. This only takes effect on errors thrown during the initial fetch() call and not while streaming the body.

  • httpRetryDelay: ActionContextKey<number>

    Delay in milliseconds to wait between fetch retries. Requires httpRetryCount to be set.

  • httpRetryOnServerError: ActionContextKey<number>

    Retry fetch, if server replies with a 5xx error response. Requires httpRetryCount to be set.

  • httpTimeout: ActionContextKey<number>

    HTTP request timeout in milliseconds.

  • includeCredentials: ActionContextKey<boolean>

    Include credentials flags.