http-params

get http parameters

http-params

Easy access to http parameters.

var http = require('http'),
    parse = require('http-params')
 
http.createServer(function (reqres) {
  parse(req, function (errparams) {
    console.log(JSON.stringify(params))
  })
}).listen(7734)

For GET and DELETE requests, the query string object is parsed and returned. For POST and PUT requests, the form body is collected, parsed, and returned.

MIT