MCPcopy Index your code
hub / github.com/encode/httpx / decode

Method decode

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

Source from the content-addressed store, hash-verified

93 self.decompressor = zlib.decompressobj(zlib.MAX_WBITS | 16)
94
95 def decode(self, data: bytes) -> bytes:
96 try:
97 return self.decompressor.decompress(data)
98 except zlib.error as exc:
99 raise DecodingError(str(exc)) from exc
100
101 def flush(self) -> bytes:
102 try:

Callers 15

_build_auth_headerMethod · 0.45
_build_auth_headerMethod · 0.45
encodingMethod · 0.45
keysMethod · 0.45
valuesMethod · 0.45
itemsMethod · 0.45
multi_itemsMethod · 0.45
get_listMethod · 0.45
__getitem__Method · 0.45
http_versionMethod · 0.45
reason_phraseMethod · 0.45
iter_bytesMethod · 0.45

Calls 1

DecodingErrorClass · 0.85

Tested by 10

test_verboseFunction · 0.36
test_authFunction · 0.36
echo_raw_pathFunction · 0.36
echo_headersFunction · 0.36
echo_headersFunction · 0.36
redirectsFunction · 0.36
echo_raw_headersFunction · 0.36
test_same_originFunction · 0.36
test_not_same_originFunction · 0.36