MCPcopy
hub / github.com/encode/uvicorn / test_bench_http10

Function test_bench_http10

tests/benchmarks/test_http.py:91–94  ·  view source on GitHub ↗
(http_protocol_cls: type[HTTPProtocol])

Source from the content-addressed store, hash-verified

89
90
91async def test_bench_http10(http_protocol_cls: type[HTTPProtocol]) -> None:
92 protocol = get_connected_protocol(_plain_text_config, http_protocol_cls)
93 protocol.data_received(HTTP10_GET_REQUEST)
94 await protocol.loop.run_one()
95
96
97async def test_bench_connection_close(http_protocol_cls: type[HTTPProtocol]) -> None:

Callers

nothing calls this directly

Calls 3

get_connected_protocolFunction · 0.90
data_receivedMethod · 0.45
run_oneMethod · 0.45

Tested by

no test coverage detected