httptools
httptools copied to clipboard
How to get request body with httptools?
How to get access to request body? Something like this: httptools.HttpRequestParser.get_body()
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)