Middleware for lazy sending of HTTP responses.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test
.gitignore
.travis.yml
Makefile
index.js
package.json
readme.md

readme.md

###Slack - Middleware for lazy sending of HTTP responses.
Install: npm install slack


###res.send():

res.send(body, code)

code is optional, if given will set the HTTP status code. If body is an object then the output will be converted to json and the content-type header will be set to application/json. Otherwise the output won't be converted and will be sent as text/html.


###Examples: View the examples


###Tests

npm test

Build Status