Class HttpServerCodec.HttpServerResponseEncoder

    • Constructor Detail

      • HttpServerResponseEncoder

        private HttpServerResponseEncoder()
    • Method Detail

      • 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