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

Method flush

httpx/_decoders.py:371–378  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

369 return lines
370
371 def flush(self) -> list[str]:
372 if not self.buffer and not self.trailing_cr:
373 return []
374
375 lines = ["".join(self.buffer)]
376 self.buffer = []
377 self.trailing_cr = False
378 return lines
379
380
381SUPPORTED_DECODERS = {

Callers 2

iter_linesMethod · 0.95
aiter_linesMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected