Here are the examples of the python api aiohttp.protocol.HttpVersion11 taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Example 1
Project: aiohttp Source File: test_protocol.py
def test_default_headers_connection_keep_alive_11(transport):
msg = protocol.Response(transport, 200,
http_version=protocol.HttpVersion11)
msg.keepalive = True
msg._add_default_headers()
assert 'Connection' not in msg.headers