(http_protocol_cls: type[HTTPProtocol])
| 359 | |
| 360 | |
| 361 | async def test_head_request(http_protocol_cls: type[HTTPProtocol]): |
| 362 | app = Response("Hello, world", media_type="text/plain") |
| 363 | |
| 364 | protocol = get_connected_protocol(app, http_protocol_cls) |
| 365 | protocol.data_received(SIMPLE_HEAD_REQUEST) |
| 366 | await protocol.loop.run_one() |
| 367 | assert b"HTTP/1.1 200 OK" in protocol.transport.buffer |
| 368 | assert b"Hello, world" not in protocol.transport.buffer |
| 369 | |
| 370 | |
| 371 | async def test_post_request(http_protocol_cls: type[HTTPProtocol]): |
nothing calls this directly
no test coverage detected