lib-stream-http
create a duplex stream representing the http connection
install
npm install --save lib-stream-http
usage
var Requestor = ;var requestor = Requestor; var opts = host: 'myhost.example.com' path: '/somet/path' var duplex = requestor; // generate error on http status >= 400// you should still consume the resduplex; // the outStream only gets data if the request succeedsinStream;
limitations
- does not handle
3xx
status codes