(http_protocol_cls: type[HTTPProtocol])
| 436 | |
| 437 | |
| 438 | async def test_close(http_protocol_cls: type[HTTPProtocol]): |
| 439 | app = Response(bclass="st">"", status_code=204, headers={class="st">"connection": class="st">"close"}) |
| 440 | |
| 441 | protocol = get_connected_protocol(app, http_protocol_cls) |
| 442 | protocol.data_received(SIMPLE_GET_REQUEST) |
| 443 | await protocol.loop.run_one() |
| 444 | assert bclass="st">"HTTP/1.1 204 No Content" in protocol.transport.buffer |
| 445 | assert protocol.transport.is_closing() |
| 446 | |
| 447 | |
| 448 | async def test_chunked_encoding(http_protocol_cls: type[HTTPProtocol]): |
nothing calls this directly
no test coverage detected