Instance Methodswift-nio 2.81.0NIOTLS
channelInactive(context:)
NIOTypedApplicationProtocolNegotiationHandler.swift:120func channelInactive(context: ChannelHandlerContext)
func channelInactive(context: ChannelHandlerContext)
s6NIOTLS45NIOTypedApplicationProtocolNegotiationHandlerC15channelInactive7contexty7NIOCore07ChannelF7ContextC_tF
What are these?5XPHK
import NIOTLS
@preconcurrency final class NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult> where NegotiationResult : Sendable
A helper ChannelInboundHandler
that makes it easy to swap channel pipelines based on the result of an ALPN negotiation.
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
init(alpnCompleteHandler: @escaping (ALPNResult, Channel) -> EventLoopFuture<NegotiationResult>)
Create an ApplicationProtocolNegotiationHandler
with the given completion callback.
convenience init(alpnCompleteHandler: @escaping (ALPNResult) -> EventLoopFuture<NegotiationResult>)
Create an ApplicationProtocolNegotiationHandler
with the given completion callback.
var protocolNegotiationResult: EventLoopFuture<NegotiationResult> { get }
func channelRead(context: ChannelHandlerContext, data: NIOAny)
func handlerAdded(context: ChannelHandlerContext)
func handlerRemoved(context: ChannelHandlerContext)
func userInboundEventTriggered(context: ChannelHandlerContext, event: Any)
typealias InboundIn = Any
typealias InboundOut = Any