Class HttpResponse

  • All Implemented Interfaces:
    Response

    @Deprecated(since="2021-05-27")
    public class HttpResponse
    extends java.lang.Object
    implements Response
    Deprecated.
    • Method Detail

      • getRequest

        public Request getRequest()
        Deprecated.
        Specified by:
        getRequest in interface Response
        Returns:
        the request associated with this response
      • getVersion

        public HttpVersion getVersion()
        Deprecated.
        Specified by:
        getVersion in interface Response
        Returns:
        the HTTP version of this response, such as "HTTP/1.1"
      • getStatus

        public int getStatus()
        Deprecated.
        Specified by:
        getStatus in interface Response
        Returns:
        the HTTP status code of this response, such as 200 or 404
      • status

        public HttpResponse status​(int status)
        Deprecated.
      • reason

        public HttpResponse reason​(java.lang.String reason)
        Deprecated.
      • getHeaders

        public HttpFields getHeaders()
        Deprecated.
        Specified by:
        getHeaders in interface Response
        Returns:
        the headers of this response
      • getTrailers

        public HttpFields getTrailers()
        Deprecated.
      • abort

        public boolean abort​(java.lang.Throwable cause)
        Deprecated.
        Description copied from interface: Response
        Attempts to abort the receive of this response.
        Specified by:
        abort in interface Response
        Parameters:
        cause - the abort cause, must not be null
        Returns:
        whether the abort succeeded
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object