MCPcopy
hub / github.com/tornadoweb/tornado / transform_chunk

Method transform_chunk

tornado/web.py:3364–3374  ·  view source on GitHub ↗
(self, chunk: bytes, finishing: bool)

Source from the content-addressed store, hash-verified

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
3377def authenticated(

Callers 1

transform_first_chunkMethod · 0.95

Calls 4

seekMethod · 0.80
writeMethod · 0.45
closeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected