Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add request body buffering / parsing helpers #10

Closed
tj opened this issue Aug 17, 2013 · 2 comments
Closed

add request body buffering / parsing helpers #10

tj opened this issue Aug 17, 2013 · 2 comments

Comments

@tj
Copy link
Member

tj commented Aug 17, 2013

in libs but add a few methods here, so common

@jonathanong
Copy link
Member

i made raw-body for getting the raw request body with byte limits and content-length checking. i was thinking of putting it in connect but i don't think there's a need.

its implementation in koa-body-parser is pretty simple. you think this is generic enough for core?

var buffer = yield this.rawBody;
var text = buffer.toString('utf8');

@tj
Copy link
Member Author

tj commented Sep 14, 2013

probably worth leaving out for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants