HTTP1ChannelInitializer

public struct HTTP1ChannelInitializer : HBChannelInitializer

Setup child channel for HTTP1

  • Undocumented

    Declaration

    Swift

    public init(upgraders: [HTTPServerProtocolUpgrader] = [])
  • Initialize HTTP1 channel

    Declaration

    Swift

    public func initialize(channel: Channel, childHandlers: [RemovableChannelHandler], configuration: HBHTTPServer.Configuration) -> EventLoopFuture<Void>

    Parameters

    channel

    channel

    childHandlers

    Channel handlers to add

    configuration

    server configuration