Comunica
    Preparing search index...

    Module @comunica/actor-http-retry-body - v5.1.3

    Comunica Retry HTTP Body Actor

    npm version

    An HTTP actor that retries response body streams that error mid-read.

    This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

    Click here if you just want to query with Comunica.

    $ yarn add @comunica/actor-http-retry-body
    

    After installing, this package can be added to your engine's configuration as follows:

    {
    "@context": [
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-retry-body/^5.0.0/components/context.jsonld"
    ],
    "actors": [
    {
    "@id": "urn:comunica:default:http/actors#retry-body",
    "@type": "ActorHttpRetryBody"
    }
    ]
    }
    • KeysHttp.httpRetryBodyCount: The number of retries when a response body stream errors mid-read. Responses are buffered until complete. This has no default, and must be set to a value greater than 0 to enable body retries.
    • KeysHttp.httpRetryBodyDelayFallback: The fallback retry delay in milliseconds between body retries. Defaults to 0.
    • KeysHttp.httpRetryBodyAllowUnsafe: Allow body retries for non-idempotent methods or non-replayable request bodies. Defaults to false.
    • KeysHttp.httpRetryBodyMaxBytes: The optional maximum number of bytes to buffer per attempt. When exceeded, body retries are disabled and the response continues streaming as-is. By default, this is unset.

    Classes

    ActorHttpRetryBody

    Interfaces

    IActorHttpRetryBodyArgs