http-send
Http send function inspired by res.send()
of express
Supports:
- Sending of strings, buffers and streams
- Automatic
Content-Length
assignment HEAD
requests handling- Freshness checking
- ETags
Examples
var send = // send hello world string // do something when response were closed or finished// works only for node >= 0.10 // streaming// works only for node >= 0.10var stream = fsstream
Installation
npm install http-send
License
MIT