Example usage for Java com.squareup.okhttp Response fields, constructors, methods, implement or subclass
The text is from its open source code.
Request | request |
Protocol | protocol |
int | code |
String | message |
Handshake | handshake |
Headers | headers |
ResponseBody | body |
Response | networkResponse |
Response | cacheResponse |
Response | priorResponse |
CacheControl | cacheControl |
List | challenges() Returns the authorization challenges appropriate for this response's code. |
String | header(String name) |
String | header(String name, String defaultValue) |
boolean | isRedirect() Returns true if this response redirects to another resource. |
boolean | isSuccessful() Returns true if the code is in [200..300), which means the request was successfully received, understood, and accepted. |
Builder | newBuilder() |
String | toString() |