com.apollographql.apollo3.runtime.java.network.http.HttpCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apollo-runtime-java Show documentation
Show all versions of apollo-runtime-java Show documentation
Apollo GraphQL runtime for Java
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