(self)
| 130 | |
| 131 | class 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() |