Handle multiple methods elegantly
JavaScript Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENCE
Makefile
README.md
form.js
index.js
method.js
package.json
testem.json

README.md

http-methods build status

Handle multiple methods elegantly

Example

var methods = require("http-methods")
    , http = require("http")

http.createServer(methods({
    GET: function (req, res)  { res.end("get") }
    , POST: function (req, res) { res.end("post") }
})).listen(8080)

Installation

npm install http-methods

Tests

npm test

Contributors

  • Raynos

MIT Licenced