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

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

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
     */
    public void onBeforeRequest(Request request);

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy