-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
Milestone
Description
Python 3.6
http-parser 0.8.3
from http_parser.http import HttpStream, HTTP_REQUEST
from io import BytesIO
stream = HttpStream(BytesIO(b"GET /admin HTTP/1.1\r\n\r\n"), kind=HTTP_REQUEST)This will raise AssertError
assert stream.method() == "GET" # DELETE
assert stream.url() == "/admin"This is correct
assert stream.url() == "/admin"
assert stream.method() == "GET"