Vapor Documentation Beta

Structure HTTPServer.​Configuration.​Compression​Configuration

public struct CompressionConfiguration

Supported HTTP compression options.

Member Of

HTTPServer.Configuration

Engine server config struct.

Properties

disabled

var disabled: Self

Disables compression. This is the default.

enabled

var enabled: Self

Enables compression with default configuration.

Methods

enabled(initial​Byte​Buffer​Capacity:​)

public static func enabled(initialByteBufferCapacity: Int) -> Self

Enables compression with custom configuration.