1.0.1 • Published 9 years ago

fax-body v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

fax-body

NPM version build status Test coverage Downloads

Parse response bodies with generators based on co-body.

Installation

npm install fax-body

Usage

// application/json
var body = yield parse(req);

// explicit limit, defaults to 1mb
var body = yield parse(req, {limit: '10kb'});

Why?

fax has no notion of body parsing, so by moving it out into a module there can be custom body parsers for any type of content.

See also

License

MIT