@comunica/actor-http-retry-body
v5.2.2
Published
Comunica HTTP bus actor that retries response body streams
Downloads
4,320
Readme
Comunica Retry HTTP Body Actor
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.
Install
$ yarn add @comunica/actor-http-retry-bodyConfigure
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"
}
]
}Context Parameters
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 than0to enable body retries.KeysHttp.httpRetryBodyDelayFallback: The fallback retry delay in milliseconds between body retries. Defaults to0.KeysHttp.httpRetryBodyAllowUnsafe: Allow body retries for non-idempotent methods or non-replayable request bodies. Defaults tofalse.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.
