HTTPResponseEncoder
public final class HTTPResponseEncoder : ChannelOutboundHandler, RemovableChannelHandler
A ChannelOutboundHandler
that can serialize HTTP responses.
This channel handler is used to translate messages from a series of
HTTPServerResponsePart
into the HTTP/1.1 wire format.
-
Declaration
Swift
public typealias OutboundIn = HTTPServerResponsePart
-
Declaration
Swift
public typealias OutboundOut = IOData
-
Undocumented
Declaration
Swift
public init()
-
Declaration
Swift
public func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)