Instance Propertyhummingbird 2.15.0HummingbirdCore
serverName
Server name to return in “server” header
let serverName: String?Server name to return in “server” header
let serverName: String?s15HummingbirdCore19ServerConfigurationV10serverNameSSSgvp What are these?11WBCimport HummingbirdCorestruct ServerConfigurationHTTP server configuration
@frozen struct StringA Unicode string value that is a collection of characters.
init(address: BindAddress = .hostname(), serverName: String? = nil, backlog: Int = 256, reuseAddress: Bool = true, availableConnectionsDelegate: (any AvailableConnectionsDelegate)? = nil) Initialize server configuration
let address: BindAddressBind address for server
let availableConnectionsDelegate: (any AvailableConnectionsDelegate)?Object deciding on when we should accept new connection. Use MaximumAvailableConnections to set the maximum allowed connections.
let backlog: IntDefines the maximum length for the queue of pending connections
let reuseAddress: BoolAllows socket to be bound to an address that is already in use.