Class HttpServerCodec.HttpServerResponseEncoder

All Implemented Interfaces:
ChannelHandler, ChannelOutboundHandler
Enclosing class:
HttpServerCodec

private final class HttpServerCodec.HttpServerResponseEncoder extends HttpResponseEncoder
  • Field Details

  • Constructor Details

    • HttpServerResponseEncoder

      private HttpServerResponseEncoder()
  • Method Details

    • sanitizeHeadersBeforeEncode

      protected void sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty)
      Description copied from class: HttpObjectEncoder
      Allows to sanitize headers of the message before encoding these.
      Overrides:
      sanitizeHeadersBeforeEncode in class HttpResponseEncoder
    • isContentAlwaysEmpty

      protected boolean isContentAlwaysEmpty(HttpResponse msg)
      Description copied from class: HttpObjectEncoder
      Determine whether a message has a content or not. Some message may have headers indicating a content without having an actual content, e.g the response to an HEAD or CONNECT request.
      Overrides:
      isContentAlwaysEmpty in class HttpResponseEncoder
      Parameters:
      msg - the message to test
      Returns:
      true to signal the message has no content