Skip to content

Instance Property

responseCompressionOverride

The response compression override to use over the base configuration.
var responseCompressionOverride: HTTPHeaders.ResponseCompression

Discussion

Overrides are only used when the server’s allowRequestOverrides property is enabled, otherwise they are ignored.

To clear an override set previously in the chain (ie. closer to the root route than to the original response), set HTTPHeaders/ResponseCompression/useDefault.

Note

Middleware that come after this one, or responses with a HTTPHeaders/ResponseCompression header, will take priority over the override set here, unless shouldForce is set to true.