(self, request)
| 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) |
no test coverage detected