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

How to get request body with httptools? #22

Open
agiUnderground opened this issue Aug 27, 2017 · 1 comment
Open

How to get request body with httptools? #22

agiUnderground opened this issue Aug 27, 2017 · 1 comment

Comments

@agiUnderground
Copy link

How to get access to request body? Something like this: httptools.HttpRequestParser.get_body()

@sethmlarson
Copy link
Contributor

sethmlarson commented Aug 28, 2017

You'll have to set a callback in the protocol you pass to the parser for when a chunk of the body is received and accumulate the body somewhere if you want this exact functionality. The function name to define in the protocol is on_body(data)

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

No branches or pull requests

2 participants