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

Method aiter_lines

httpx/_models.py:1028–1035  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1026 yield chunk
1027
1028 async def aiter_lines(self) -> typing.AsyncIterator[str]:
1029 decoder = LineDecoder()
1030 with request_context(request=self._request):
1031 async for text in self.aiter_text():
1032 for line in decoder.decode(text):
1033 yield line
1034 for line in decoder.flush():
1035 yield line
1036
1037 async def aiter_raw(
1038 self, chunk_size: int | None = None

Callers 1

test_aiter_linesFunction · 0.95

Calls 5

aiter_textMethod · 0.95
decodeMethod · 0.95
flushMethod · 0.95
LineDecoderClass · 0.85
request_contextFunction · 0.85

Tested by 1

test_aiter_linesFunction · 0.76