com.moesif.api.http.client.HttpCallBack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesifapi Show documentation
Show all versions of moesifapi Show documentation
Java API Library for Moesif
/*
* MoesifAPILib
*
*
*/
package com.moesif.api.http.client;
import com.moesif.api.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);
}