0.0.1 • Published 10 years ago
urlenparser v0.0.1
urlenparser
Installation
npm install urlenparser
git clone https://github.com/judgeface/urlenparser.git
How to use
var urlenparser = require('urlenparser');
urlenparser(req, function (err, fields) {
});
urlenparser(req, options, callback)
Options:
maxKeys
maximum number of keys for the result (default to 100)maxLength
maximum size in octet (default to 10240)
The callback gets two arguments (err, fields)
err
:- err.message to
Unsupported Media Type
and err.statusCode to415
- err.message to
Length Required
and err.statusCode to411
- err.message to
Request Entity Too Large
and err.statusCode to413
- an error emitted by
req
- err.message to
fields
is anObject
containing the result
License
MIT licensed