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

io.apimatic.coreinterfaces.http.Callback Maven / Gradle / Ivy

Go to download

An abstract layer of the functionalities provided by apimatic-core-library, okhttp-client-adapter and APIMatic SDKs.

There is a newer version: 0.3.1
Show newest version
package io.apimatic.coreinterfaces.http;

import io.apimatic.coreinterfaces.http.request.Request;

/**
 * An Callback that captures the request and response for use later.
 */
public interface Callback {

    /**
     * Callback called just before the HTTP request is sent.
     * @param request The HTTP request to be executed
     */
    void onBeforeRequest(Request request);

    /**
     * Callback called just after the HTTP response is received.
     * @param context Context for the HTTP call
     */
    void onAfterResponse(Context context);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy