By default, all request method methods will return a {@link HttpResponseDecorator}instance, which provides convenient access to response headers and the parsed response body. The response body is parsed based on content-type, identical to how HTTPBuilder's {@link HTTPBuilder#defaultSuccessHandler(HttpResponseDecorator,Object) default response handler} functions.
Failed requests (i.e. responses which return a status code > 399) will by default throw a {@link HttpResponseException}. This exception may be used to retrieve additional information regarding the response as well.
@author Tom Nichols @since 0.5
|
|