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

Method flush

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

Source from the content-addressed store, hash-verified

192 return output.getvalue()
193
194 def flush(self) -> bytes:
195 if not self.seen_data:
196 return b""
197 ret = self.decompressor.flush() # note: this is a no-op
198 if not self.decompressor.eof:
199 raise DecodingError("Zstandard data is incomplete") # pragma: no cover
200 return bytes(ret)
201
202
203class MultiDecoder(ContentDecoder):

Callers

nothing calls this directly

Calls 2

DecodingErrorClass · 0.85
flushMethod · 0.45

Tested by

no test coverage detected