Response
INFO
See also: request for more usages.
Response represents the result of an HTTP request with status code and content.
code
Returns the HTTP status code of the response.
java
int code = response.code();string
Returns the response body as a string.
java
String body = response.string();json
Returns the response body parsed as a Json object.
java
Json json = response.json();