Example usage for Java com.squareup.okhttp Callback fields, constructors, methods, implement or subclass
The text is from its open source code.
void | onFailure(Request request, IOException e) Called when the request could not be executed due to cancellation, a connectivity problem or timeout. |
void | onResponse(Response response) Called when the HTTP response was successfully returned by the remote server. |