Vapor Documentation Beta

Structure HTTPServer.​Configuration.​Decompression​Configuration

public struct DecompressionConfiguration

Supported HTTP decompression options.

Member Of

HTTPServer.Configuration

Engine server config struct.

Properties

disabled

var disabled: Self

Disables decompression. This is the default option.

enabled

var enabled: Self

Enables decompression with default configuration.

Methods

enabled(limit:​)

public static func enabled(limit: NIOHTTPDecompression.DecompressionLimit) -> Self

Enables decompression with custom configuration.