# @comunica/actor-http-retry-body

> Comunica HTTP bus actor that retries response body streams

Latest version **5.4.0** (published 2026-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @comunica/actor-http-retry-body
pnpm add @comunica/actor-http-retry-body
yarn add @comunica/actor-http-retry-body
bun add @comunica/actor-http-retry-body
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 5.4.0 |
| Published | 2026-09-14 |
| First published | 2026-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 56.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 580 |
| Maintainers | joachimvh, rubensworks, rubenverborgh, dexagod, jeswr |
| Keywords | comunica, runner |

## Links

- npm: https://www.npmjs.com/package/@comunica/actor-http-retry-body
- Repository: https://github.com/comunica/comunica
- Homepage: https://comunica.dev/
- Issues: https://github.com/comunica/comunica/issues
- npm.io page: https://npm.io/package/@comunica/actor-http-retry-body

## Dependencies (5)

- [@comunica/core](https://npm.io/package/@comunica/core.md) ^5.4.0
- [readable-stream](https://npm.io/package/readable-stream.md) ^4.7.0
- [@comunica/bus-http](https://npm.io/package/@comunica/bus-http.md) ^5.4.0
- [@comunica/context-entries](https://npm.io/package/@comunica/context-entries.md) ^5.4.0
- [@comunica/mediatortype-time](https://npm.io/package/@comunica/mediatortype-time.md) ^5.4.0

## Recent versions

- 5.4.0 (latest) — 2026-09-14
- 5.3.0 — 2026-07-10
- 5.2.3 — 2026-05-26
- 5.2.2 — 2026-05-03
- 5.2.0 — 2026-04-14

## README

# Comunica Retry HTTP Body Actor

[![npm version](https://badge.fury.io/js/%40comunica%2Factor-http-retry-body.svg)](https://www.npmjs.com/package/@comunica/actor-http-retry-body)

An [HTTP](https://github.com/comunica/comunica/tree/master/packages/bus-http) actor that retries response body streams that error mid-read.

This module is part of the [Comunica framework](https://github.com/comunica/comunica),
and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/).

[Click here if you just want to query with Comunica](https://comunica.dev/docs/query/).

## Install

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

## Configure

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

```json
{
  "@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 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.

---
_Source: https://npm.io/package/@comunica/actor-http-retry-body · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
