MCPcopy
hub / github.com/aio-libs/aiohttp / test_write_auto_send_headers

Function test_write_auto_send_headers

tests/test_protocol.py:346–353  ·  view source on GitHub ↗
(transport)

Source from the content-addressed store, hash-verified

344
345
346def test_write_auto_send_headers(transport):
347 msg = protocol.Response(transport, 200, http_version=(1, 0))
348 msg._send_headers = True
349
350 msg.write(b'data1')
351 assert msg.headers_sent
352 # cleanup
353 msg.writer.close()
354
355
356def test_write_payload_eof(transport):

Callers

nothing calls this directly

Calls 2

writeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected