MCPcopy
hub / github.com/aio-libs/aiohttp / _start_compression

Method _start_compression

aiohttp/web_reqrep.py:670–679  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

668 self.content_length = None
669
670 def _start_compression(self, request):
671 if self._compression_force:
672 self._do_start_compression(self._compression_force)
673 else:
674 accept_encoding = request.headers.get(
675 hdrs.ACCEPT_ENCODING, '').lower()
676 for coding in ContentCoding:
677 if coding.value in accept_encoding:
678 self._do_start_compression(coding)
679 return
680
681 def start(self, request):
682 warnings.warn('use .prepare(request) instead', DeprecationWarning)

Callers 1

_startMethod · 0.95

Calls 2

_do_start_compressionMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected