MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / compress_sync

Method compress_sync

aiohttp/compression_utils.py:221–222  ·  view source on GitHub ↗
(self, data: Buffer)

Source from the content-addressed store, hash-verified

219 self._compressor = self._zlib_backend.compressobj(**kwargs)
220
221 def compress_sync(self, data: Buffer) -> bytes:
222 return self._compressor.compress(data)
223
224 async def compress(self, data: Buffer) -> bytes:
225 """Compress the data and returned the compressed bytes.

Callers 2

compressMethod · 0.95

Calls 1

compressMethod · 0.45

Tested by

no test coverage detected