Class Http1Response

java.lang.Object
io.netty.handler.codec.http.DefaultHttpObject
io.netty.handler.codec.http.DefaultHttpMessage
io.netty.handler.codec.http.DefaultHttpResponse
com.linkedin.alpini.netty4.misc.BasicHttpResponse
com.linkedin.alpini.netty4.http2.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

    Modifier and Type
    Method
    Description
    io.netty.handler.codec.http.HttpResponse
    setStatus(io.netty.handler.codec.http.HttpResponseStatus status)

    Methods inherited from class com.linkedin.alpini.netty4.misc.BasicHttpResponse

    attr, hasAttr

    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 Details

    • 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 Details

    • 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