Class Response


  • public class Response
    extends Object
    Response object which is parsed from the http response to status line, headers and the body.
    Author:
    bdhandap
    • Method Detail

      • getResponseStatus

        public ResponseStatus getResponseStatus()
        Status line with status code and reason. Eg :400, 404, etc
      • getResponseHeaders

        public Map<String,​String> getResponseHeaders()
        Key value pair of all the headers in the response.
      • getResponseBody

        public String getResponseBody()
        Response body as string if the response contains text response.
      • getResponsePayload

        public InputStream getResponsePayload()
        Response as the raw input stream.