Configuration

public struct Configuration

Application configuration

Member variables

  • Bind address for server

    Declaration

    Swift

    public let address: HBBindAddress
  • Server name to return in “server” header

    Declaration

    Swift

    public let serverName: String?
  • Maximum upload size allowed

    Declaration

    Swift

    public let maxUploadSize: Int
  • Maximum size of buffer for streaming request payloads

    Declaration

    Swift

    public let maxStreamingBufferSize: Int
  • Defines the maximum length for the queue of pending connections

    Declaration

    Swift

    public let backlog: Int
  • Allows socket to be bound to an address that is already in use.

    Declaration

    Swift

    public let reuseAddress: Bool
  • Disables the Nagle algorithm for send coalescing.

    Declaration

    Swift

    public let tcpNoDelay: Bool
  • Pipelining ensures that only one http request is processed at one time

    Declaration

    Swift

    public let enableHttpPipelining: Bool
  • TLS options for NIO Transport services

    Declaration

    Swift

    public let tlsOptions: TSTLSOptions
  • Number of threads to allocate in the application thread pool

    Declaration

    Swift

    public let threadPoolSize: Int
  • don’t run the HTTP server

    Declaration

    Swift

    public let noHTTPServer: Bool
  • logging level

    Declaration

    Swift

    public let logLevel: Logger.Level

Initialization