Initializerswift-nio 2.72.0NIOTLS
init(alpnCompleteHandler:)
Create an ApplicationProtocolNegotiationHandler
with the given completion callback.
convenience init(alpnCompleteHandler: @escaping (ALPNResult) -> EventLoopFuture<NegotiationResult>)
Parameters
- alpnCompleteHandler
The closure that will fire when ALPN negotiation has completed.
Other members in extension
Typealiases
Type members
init(alpnCompleteHandler: @escaping (ALPNResult, Channel) -> EventLoopFuture<NegotiationResult>
) Create an
ApplicationProtocolNegotiationHandler
with the given completion callback.
Instance members
var protocolNegotiationResult: EventLoopFuture<NegotiationResult>
func channelInactive(context: ChannelHandlerContext
) func channelRead(context: ChannelHandlerContext, data: NIOAny
) func handlerAdded(context: ChannelHandlerContext
) func handlerRemoved(context: ChannelHandlerContext
) func userInboundEventTriggered(context: ChannelHandlerContext, event: Any
)