http-duplex

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

2 个版本
安装
npm install http-duplex
yarn add http-duplex
pnpm add http-duplex
bun add http-duplex
README

http-duplex

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

build status

example

methods

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 do:

npm install http-duplex

license

MIT

版本列表
0.0.2 2012-09-23
0.0.0 2012-09-22