Instance Propertyhummingbird 2.3.0Hummingbird
address
Bind address for server
Configuration.swift:29var address: BindAddress
Other members in extension
Type members
init(address: BindAddress, serverName: String?, backlog: Int, reuseAddress: Bool, availableConnectionsDelegate: AvailableConnectionsDelegate?
) Initialize Application configuration
Instance members
var availableConnectionsDelegate: AvailableConnectionsDelegate?
Object deciding on when we should accept new connection. Use
MaximumAvailableConnections
to set the maximum allowed connections.var backlog: Int
Defines the maximum length for the queue of pending connections
var reuseAddress: Bool
Allows socket to be bound to an address that is already in use.
var serverName: String?
Server name to return in “server” header
func with(address: BindAddress?, serverName: String?, backlog: Int?, reuseAddress: Bool?
) -> ApplicationConfiguration Create new configuration struct with updated values