HBBindAddress

public enum HBBindAddress

Address to bind server to

  • bind address define by host and port

    Declaration

    Swift

    case hostname(_: String = "127.0.0.1", port: Int = 8080)
  • bind address defined by unxi domain socket

    Declaration

    Swift

    case unixDomainSocket(path: String)
  • if address is hostname and port return port

    Declaration

    Swift

    public var port: Int? { get }
  • if address is hostname and port return hostname

    Declaration

    Swift

    public var host: String? { get }
  • if address is unix domain socket return unix domain socket path

    Declaration

    Swift

    public var unixDomainSocketPath: String? { get }