MCPcopy
hub / github.com/urllib3/urllib3 / __init__

Method __init__

src/urllib3/response.py:132–135  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

130
131class GzipDecoder(ContentDecoder):
132 def __init__(self) -> None:
133 self._obj = zlib.decompressobj(16 + zlib.MAX_WBITS)
134 self._state = GzipDecoderState.FIRST_MEMBER
135 self._unconsumed_tail = b""
136
137 def decompress(self, data: bytes, max_length: int = -1) -> bytes:
138 ret = bytearray()

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected