# http-duplex

> turn (req,res) pairs into a single duplex stream

Latest version **0.0.2** (published 2012-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install http-duplex
pnpm add http-duplex
yarn add http-duplex
bun add http-duplex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2012-09-23 |
| First published | 2012-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | James Halliday |
| Maintainers | substack |
| Keywords | duplex, http, server, stream |

## Links

- npm: https://www.npmjs.com/package/http-duplex
- Repository: https://github.com/substack/http-duplex
- npm.io page: https://npm.io/package/http-duplex

## Dependencies (2)

- [inherits](https://npm.io/package/inherits.md) ~1.0.0
- [duplex-pipe](https://npm.io/package/duplex-pipe.md) ~0.0.1

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2012-09-23
- 0.0.0 — 2012-09-22

## README

# http-duplex

Turn (req,res) pairs into a single readable/writable stream.

[![build status](https://secure.travis-ci.org/substack/http-duplex.png)](http://travis-ci.org/substack/http-duplex)

# example

# methods

``` js
var httpDuplex = require('http-duplex')
```

## var dup = httpDuplex(req, res)

Return a new readable/writable duplex stream `dup` from the http request `req`
and http response `res`.

`dup` has all the same methods has both `req` and `res`, but on a single object.

# install

With [npm](https://npmjs.org) do:

```
npm install http-duplex
```

# license

MIT

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