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

Function transformable

plugins/compress/compress.cc:905–917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905static int
906transformable(TSHttpTxn txnp, bool server, HostConfiguration *host_configuration, int *compress_type, int *algorithms,
907 bool *content_is_compressible)
908{
909 // First check if content could be compressible
910 *content_is_compressible = is_content_compressible(txnp, server, host_configuration);
911 if (!*content_is_compressible) {
912 return 0;
913 }
914
915 // Then check if client accepts compression
916 return client_accepts_compression(txnp, server, host_configuration, compress_type, algorithms);
917}
918
919static void
920add_vary_header_for_compressible_content(TSHttpTxn txnp, bool server, HostConfiguration * /* hc ATS_UNUSED */)

Callers 1

Calls 2

is_content_compressibleFunction · 0.85

Tested by

no test coverage detected