Closed kmahyyg closed 6 years ago
Python 3.5.4rc1 (default, Jul 25 2017, 08:53:34)
[GCC 6.4.0 20170704] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from hyper import HTTP20Connection
>>> c = HTTP20Connection('nghttp2.org')
>>> c.request('GET','/httpbin/headers')
1
>>> data = c.get_response()
>>> data
<hyper.http20.response.HTTP20Response object at 0x7f7a41891f60>
>>> data.read()
b'{\n "headers": {\n "Host": "nghttp2.org",\n "Via": "2 nghttpx"\n }\n}\n'
Works correctly with HTTP20Connection