MCPcopy Create free account
hub / github.com/EasyIME/PIME / transform_chunk

Method transform_chunk

python/python3/tornado/web.py:3163–3173  ·  view source on GitHub ↗
(self, chunk: bytes, finishing: bool)

Source from the content-addressed store, hash-verified

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

Callers 1

transform_first_chunkMethod · 0.95

Calls 3

writeMethod · 0.45
closeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected