(self, chunk: bytes, finishing: bool)
| 3161 | return status_code, headers, chunk |
| 3162 | |
| 3163 | def transform_chunk(self, chunk: bytes, finishing: bool) -> bytes: |
| 3164 | if self._gzipping: |
| 3165 | self._gzip_file.write(chunk) |
| 3166 | if finishing: |
| 3167 | self._gzip_file.close() |
| 3168 | else: |
| 3169 | self._gzip_file.flush() |
| 3170 | chunk = self._gzip_value.getvalue() |
| 3171 | self._gzip_value.truncate(0) |
| 3172 | self._gzip_value.seek(0) |
| 3173 | return chunk |
| 3174 | |
| 3175 | |
| 3176 | def authenticated( |
no test coverage detected