We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I made a demo
try: from http_parser.parser import HttpParser except ImportError: from http_parser.pyparser import HttpParser req = "GET / HTTP/1.1\r\nHost: www.xxx.com\r\n\r\n" resp = "HTTP/1.1 200 OK\r\nContent-Length: 4\r\n\r\n1234" data = req p = HttpParser() nparsed = p.execute(data, len(data)) print p.get_method(), nparsed, len(data) # Got: GET 37 37 data = req + resp p = HttpParser() nparsed = p.execute(data, len(data)) print p.get_method(), nparsed, len(data) # Got: HEAD 38 79 # pyparser Got: GET 79 79 # expected: GET 37 79
The text was updated successfully, but these errors were encountered:
i will have a look. thanks!
Sorry, something went wrong.
No branches or pull requests
I made a demo
The text was updated successfully, but these errors were encountered: