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

Method flush

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

Source from the content-addressed store, hash-verified

99 raise DecodingError(str(exc)) from exc
100
101 def flush(self) -> bytes:
102 try:
103 return self.decompressor.flush()
104 except zlib.error as exc: # pragma: no cover
105 raise DecodingError(str(exc)) from exc
106
107
108class BrotliDecoder(ContentDecoder):

Callers 9

iter_bytesMethod · 0.45
aiter_bytesMethod · 0.45
flushMethod · 0.45
flushMethod · 0.45
flushMethod · 0.45
test_deflateFunction · 0.45
test_gzipFunction · 0.45
test_multiFunction · 0.45
compressFunction · 0.45

Calls 1

DecodingErrorClass · 0.85

Tested by 4

test_deflateFunction · 0.36
test_gzipFunction · 0.36
test_multiFunction · 0.36
compressFunction · 0.36