HTTPResponseEncoder

public final class HTTPResponseEncoder : ChannelOutboundHandler

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.

  • Undocumented

    Declaration

    Swift

    public init()
  • Declaration

    Swift

    public func write(ctx: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)