-
Notifications
You must be signed in to change notification settings - Fork 0
BetterResponse
mtopolnik edited this page Sep 11, 2013
·
1 revision
BetterResponse is the object received by the callback function passed to ReqBuilder#go() or ReqBuilder#goDiscardingBody(). It has a com.ning.http.client.Response as its prototype and adds the methods documented below.
###xmlBody()
Returns the result of parseXml(response), where response is the underlying com.ning.http.client.Response instance.
###prettyXmlBody()
Returns the result of prettyXml(response), where response is the underlying com.ning.http.client.Response instance.
###jsonBody()
Returns the result of parsing the response body as JSON.
###stringBody()
Returns the response body as a string (same as com.ning.http.client.Response#getResponseBody()