0.0.0 • Published 9 years ago

sw-body-url v0.0.0

Weekly downloads
7
License
-
Repository
github
Last release
9 years ago

sw-body-url

Provides a middlware handler which parses Content-Type: application/x-www-form-urlencoded bodies into an object on req.body.

Install

npm install sw-body-url

Example

var http = require('http');
var sw = require('simpleware');


var bodyurl = require('sw-body-url')({
	maxLength: 8192 // The maximum length of the body
});

app.post('/posttopath', bodyurl, function(req, res) {
	res.end(req.body.say);
});