MCPcopy Create free account
hub / github.com/apache/trafficserver / compress_transform_finish

Function compress_transform_finish

plugins/compress/compress.cc:575–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573#endif
574
575static void
576compress_transform_finish(Data *data)
577{
578#if HAVE_BROTLI_ENCODE_H
579 if (data->compression_type & COMPRESSION_TYPE_BROTLI && data->compression_algorithms & ALGORITHM_BROTLI) {
580 brotli_transform_finish(data);
581 debug("compress_transform_finish: brotli compression finish");
582 } else
583#endif
584 if ((data->compression_type & (COMPRESSION_TYPE_GZIP | COMPRESSION_TYPE_DEFLATE)) &&
585 (data->compression_algorithms & (ALGORITHM_GZIP | ALGORITHM_DEFLATE))) {
586 gzip_transform_finish(data);
587 debug("compress_transform_finish: gzip compression finish");
588 } else {
589 error("No Compression matched, shouldn't come here");
590 }
591}
592
593static void
594compress_transform_do(TSCont contp)

Callers 1

compress_transform_doFunction · 0.85

Calls 3

brotli_transform_finishFunction · 0.85
gzip_transform_finishFunction · 0.85
errorFunction · 0.85

Tested by

no test coverage detected