Skip to content

Structure

HTTPServer.Configuration.ResponseCompressionConfiguration

Supported HTTP response compression options.
struct ResponseCompressionConfiguration

Topics

Instance Properties

Type Properties

  • defaultInitialByteBufferCapacity
    The default initial byte buffer capacity to use for the compressor if none is specified.
  • disabled
    Disables compression for all content types unless a route overrides the preference. This is the default.
  • enabled
    Enables compression by default, disallowing already compressed types such as images or video, unless a route overrides the preference.
  • enabledForCompressibleTypes
    Disables compression by default, but allows easily compressible types such as text, unless a route overrides the preference.
  • forceDisabled
    Disables compression unconditionally.

Type Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype