Class Http1Response

  • All Implemented Interfaces:
    io.netty.handler.codec.DecoderResultProvider, io.netty.handler.codec.http.HttpMessage, io.netty.handler.codec.http.HttpObject, io.netty.handler.codec.http.HttpResponse, io.netty.util.AttributeMap

    public class Http1Response
    extends BasicHttpResponse
    An implementation of BasicHttpResponse which always uses a Http1Headers for holding the headers. This is to aid encapsulating a Http2 request object as a Http1 object which may be efficiently unwrapped before being sent.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        Http1Response​(io.netty.handler.codec.http.HttpRequest httpRequest, Http1Headers headers)  
        Http1Response​(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status)  
        Http1Response​(io.netty.handler.codec.http.HttpRequest httpRequest, io.netty.handler.codec.http.HttpResponseStatus status, boolean validateHeaders)  
        Http1Response​(io.netty.handler.codec.http.HttpResponse response)  
      protected Http1Response​(io.netty.handler.codec.http.HttpResponse httpResponse, Http1Headers headers)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.handler.codec.http.HttpResponse setStatus​(io.netty.handler.codec.http.HttpResponseStatus status)
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpResponse

        equals, getStatus, hashCode, setProtocolVersion, status, toString
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpMessage

        getProtocolVersion, headers, protocolVersion
      • Methods inherited from class io.netty.handler.codec.http.DefaultHttpObject

        decoderResult, getDecoderResult, setDecoderResult
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface io.netty.handler.codec.DecoderResultProvider

        decoderResult, setDecoderResult
      • Methods inherited from interface io.netty.handler.codec.http.HttpMessage

        getProtocolVersion, headers, protocolVersion
      • Methods inherited from interface io.netty.handler.codec.http.HttpObject

        getDecoderResult
    • Constructor Detail

      • Http1Response

        public Http1Response​(io.netty.handler.codec.http.HttpRequest httpRequest,
                             io.netty.handler.codec.http.HttpResponseStatus status)
      • Http1Response

        public Http1Response​(io.netty.handler.codec.http.HttpRequest httpRequest,
                             io.netty.handler.codec.http.HttpResponseStatus status,
                             boolean validateHeaders)
      • Http1Response

        public Http1Response​(io.netty.handler.codec.http.HttpRequest httpRequest,
                             Http1Headers headers)
      • Http1Response

        public Http1Response​(io.netty.handler.codec.http.HttpResponse response)
      • Http1Response

        protected Http1Response​(io.netty.handler.codec.http.HttpResponse httpResponse,
                                Http1Headers headers)
    • Method Detail

      • setStatus

        public io.netty.handler.codec.http.HttpResponse setStatus​(io.netty.handler.codec.http.HttpResponseStatus status)
        Specified by:
        setStatus in interface io.netty.handler.codec.http.HttpResponse
        Overrides:
        setStatus in class io.netty.handler.codec.http.DefaultHttpResponse