(http_protocol_cls: type[HTTPProtocol])
| 388 | |
| 389 | |
| 390 | async def test_keepalive(http_protocol_cls: type[HTTPProtocol]): |
| 391 | app = Response(b"", status_code=204) |
| 392 | |
| 393 | protocol = get_connected_protocol(app, http_protocol_cls) |
| 394 | protocol.data_received(SIMPLE_GET_REQUEST) |
| 395 | await protocol.loop.run_one() |
| 396 | |
| 397 | assert b"HTTP/1.1 204 No Content" in protocol.transport.buffer |
| 398 | assert not protocol.transport.is_closing() |
| 399 | |
| 400 | |
| 401 | async def test_keepalive_timeout(http_protocol_cls: type[HTTPProtocol]): |
nothing calls this directly
no test coverage detected