All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.apollographql.apollo3.runtime.java.network.http.HttpCallback Maven / Gradle / Ivy

There is a newer version: 4.0.0-beta.7
Show newest version
package com.apollographql.apollo3.runtime.java.network.http;

import com.apollographql.apollo3.api.http.HttpResponse;
import com.apollographql.apollo3.exception.ApolloNetworkException;
import org.jetbrains.annotations.NotNull;

/**
 * A callback for the execution of HTTP requests.
 * 

* {@link #onFailure} is called if a network error happens. HTTP errors won't trigger {@link #onFailure} but * {@link #onResponse(HttpResponse)} with an {@link HttpResponse} indicating the status code. */ public interface HttpCallback { void onResponse(@NotNull HttpResponse response); void onFailure(@NotNull ApolloNetworkException exception); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy