(self, url, connection_close)
| 2272 | ] |
| 2273 | |
| 2274 | def connect(self, url, connection_close): |
| 2275 | # Use a raw connection so we can control the sending of data. |
| 2276 | s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) |
| 2277 | s.connect(("127.0.0.1", self.get_http_port())) |
| 2278 | stream = IOStream(s) |
| 2279 | stream.write(b"GET " + url + b" HTTP/1.1\r\n") |
| 2280 | if connection_close: |
| 2281 | stream.write(b"Connection: close\r\n") |
| 2282 | stream.write(b"Transfer-Encoding: chunked\r\n\r\n") |
| 2283 | return stream |
| 2284 | |
| 2285 | @gen_test |
| 2286 | def test_streaming_body(self): |
no test coverage detected