Interface Response

    • Method Detail

      • getRequest

        Request getRequest()
        Returns:
        the request associated with this response
      • getVersion

        HttpVersion getVersion()
        Returns:
        the HTTP version of this response, such as "HTTP/1.1"
      • getStatus

        int getStatus()
        Returns:
        the HTTP status code of this response, such as 200 or 404
      • getReason

        java.lang.String getReason()
        Returns:
        the HTTP reason associated to the getStatus()
      • getHeaders

        HttpFields getHeaders()
        Returns:
        the headers of this response
      • abort

        boolean abort​(java.lang.Throwable cause)
        Attempts to abort the receive of this response.
        Parameters:
        cause - the abort cause, must not be null
        Returns:
        whether the abort succeeded