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

com.squareup.square.http.client.HttpCallback Maven / Gradle / Ivy

There is a newer version: 41.2.0.20241017
Show newest version

package com.squareup.square.http.client;

import com.squareup.square.http.request.HttpRequest;

/**
 * Callback to be called before and after the HTTP call for an endpoint is made.
 */
public interface HttpCallback {

    /**
     * Callback called just before the HTTP request is sent.
     * @param request The HTTP request to be executed
     */
    public void onBeforeRequest(HttpRequest request);
    
    /**
     * Callback called just after the HTTP response is received.
     * @param context Context for the HTTP call
     */
    public void onAfterResponse(HttpContext context);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy