MCPcopy
hub / github.com/tornadoweb/tornado / test_http10

Method test_http10

tornado/test/httpserver_test.py:1011–1019  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1009 # keepalive is supported for http 1.0 too, but it's opt-in
1010 @gen_test
1011 def test_http10(self):
1012 self.http_version = b"HTTP/1.0"
1013 yield self.connect()
1014 self.stream.write(b"GET / HTTP/1.0\r\n\r\n")
1015 yield self.read_response()
1016 data = yield self.stream.read_until_close()
1017 self.assertFalse(data)
1018 self.assertNotIn("Connection", self.headers)
1019 self.close()
1020
1021 @gen_test
1022 def test_http10_keepalive(self):

Callers

nothing calls this directly

Calls 5

connectMethod · 0.95
read_responseMethod · 0.95
closeMethod · 0.95
read_until_closeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected