Server

public final class Server

Undocumented

  • Undocumented

    Declaration

    Swift

    public let configuration: Configuration
  • Undocumented

    Declaration

    Swift

    public let logger: Logger
  • Undocumented

    Declaration

    Swift

    public let eventLoopGroup: EventLoopGroup
  • Undocumented

    Declaration

    Swift

    public var onStart: ((EventLoop) -> Void)?
  • Undocumented

    Declaration

    Swift

    public var onStop: (() -> Void)?
  • Undocumented

    Declaration

    Swift

    public var onError: ((Error, EventLoop) -> Void)?
  • Undocumented

    Declaration

    Swift

    public var onReceive: ((Request, EventLoop) -> Any)?
  • Undocumented

    Declaration

    Swift

    public init(configuration: Configuration = .init())
  • Undocumented

    Declaration

    Swift

    public func start() throws
  • Undocumented

    Declaration

    Swift

    public func stop() throws
  • Undocumented

    See more

    Declaration

    Swift

    public struct Configuration