(self, chunk: bytes, finishing: bool)
| 3362 | return status_code, headers, chunk |
| 3363 | |
| 3364 | def transform_chunk(self, chunk: bytes, finishing: bool) -> bytes: |
| 3365 | if self._gzipping: |
| 3366 | self._gzip_file.write(chunk) |
| 3367 | if finishing: |
| 3368 | self._gzip_file.close() |
| 3369 | else: |
| 3370 | self._gzip_file.flush() |
| 3371 | chunk = self._gzip_value.getvalue() |
| 3372 | self._gzip_value.truncate(0) |
| 3373 | self._gzip_value.seek(0) |
| 3374 | return chunk |
| 3375 | |
| 3376 | |
| 3377 | def authenticated( |
no test coverage detected