Skip to content

Type Property

enabledForCompressibleTypes

Disables compression by default, but allows easily compressible types such as text, unless a route overrides the preference.
static var enabledForCompressibleTypes: `Self` { get }

Discussion

See Also

See ResponseCompressionMiddleware for more information on overriding compression preferences in routes.