HttpCallback

interface HttpCallback

A callback for the execution of HTTP requests.

onFailure is called if a network error happens. HTTP errors won't trigger onFailure but onResponse with an HttpResponse indicating the status code.

Functions

Link copied to clipboard
abstract fun onFailure(@NotNull exception: ApolloNetworkException)
Link copied to clipboard
abstract fun onResponse(@NotNull response: HttpResponse)