MessageToByteHandler
public final class MessageToByteHandler<Encoder> : ChannelOutboundHandler where Encoder : MessageToByteEncoder
A handler which turns a given MessageToByteEncoder
into a ChannelOutboundHandler
that can then be added to a
ChannelPipeline
.
-
Declaration
Swift
public typealias OutboundOut = ByteBuffer
-
Declaration
Swift
public typealias OutboundIn = Encoder.OutboundIn
-
Undocumented
Declaration
Swift
public init(_ encoder: Encoder)
-
Declaration
Swift
public func handlerAdded(context: ChannelHandlerContext)
-
Declaration
Swift
public func handlerRemoved(context: ChannelHandlerContext)
-
Declaration
Swift
public func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)