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

Method decode

httpx/_decoders.py:314–315  ·  view source on GitHub ↗
(self, data: bytes)

Source from the content-addressed store, hash-verified

312 self.decoder = codecs.getincrementaldecoder(encoding)(errors="replace")
313
314 def decode(self, data: bytes) -> str:
315 return self.decoder.decode(data)
316
317 def flush(self) -> str:
318 return self.decoder.decode(b"", True)

Callers 3

textMethod · 0.95
iter_textMethod · 0.95
aiter_textMethod · 0.95

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected