ChannelInboundHandler

public protocol ChannelInboundHandler : _ChannelInboundHandler, _EmittingChannelHandler

ChannelHandler which handles inbound I/O events for a Channel.

Please refer to _ChannelInboundHandler and _EmittingChannelHandler for more details on the provided methods.

  • The type of the inbound data which is wrapped in NIOAny.

    Declaration

    Swift

    associatedtype InboundIn
  • The type of the inbound data which will be forwarded to the next ChannelInboundHandler in the ChannelPipeline.

    Declaration

    Swift

    associatedtype InboundOut = Never
  • unwrapInboundIn(_:) Default implementation

    Unwrap the provided NIOAny that was passed to channelRead.

    Default Implementation

    Declaration

    Swift

    @_inlineable
    func unwrapInboundIn(_ value: NIOAny) -> InboundIn
  • wrapInboundOut(_:) Default implementation

    Wrap the provided InboundOut that will be passed to the next ChannelInboundHandler by calling ChannelHandlerContext.fireChannelRead.

    Default Implementation

    Declaration

    Swift

    @_inlineable
    func wrapInboundOut(_ value: InboundOut) -> NIOAny