0.0.1 • Published 11 years ago
urlenparser v0.0.1
urlenparser
Installation
npm install urlenparsergit clone https://github.com/judgeface/urlenparser.gitHow to use
var urlenparser = require('urlenparser');
urlenparser(req, function (err, fields) {
});urlenparser(req, options, callback)
Options:
maxKeysmaximum number of keys for the result (default to 100)maxLengthmaximum size in octet (default to 10240)
The callback gets two arguments (err, fields)
err:- err.message to
Unsupported Media Typeand err.statusCode to415 - err.message to
Length Requiredand err.statusCode to411 - err.message to
Request Entity Too Largeand err.statusCode to413 - an error emitted by
req
- err.message to
fieldsis anObjectcontaining the result
License
MIT licensed