MCPcopy
hub / github.com/encode/httpx / content

Function content

tests/models/test_requests.py:34–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33def test_generator_with_transfer_encoding_header():
34 def content() -> typing.Iterator[bytes]:
35 yield b"test 123" # pragma: no cover
36
37 request = httpx.Request("POST", "http://example.org", content=content())
38 assert request.headers == {"Host": "example.org", "Transfer-Encoding": "chunked"}

Calls

no outgoing calls

Tested by

no test coverage detected