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

Function test_iter_raw

tests/models/test_responses.py:386–395  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

384
385
386def test_iter_raw():
387 response = httpx.Response(
388 200,
389 content=streaming_body(),
390 )
391
392 raw = b""
393 for part in response.iter_raw():
394 raw += part
395 assert raw == b"Hello, world!"
396
397
398def test_iter_raw_with_chunksize():

Callers

nothing calls this directly

Calls 2

iter_rawMethod · 0.95
streaming_bodyFunction · 0.70

Tested by

no test coverage detected