Package com.moesif.api.http.client
Interface HttpCallBack
public interface HttpCallBack
Callback to be called before and after the HTTP call for an endpoint is made
-
Method Summary
Modifier and TypeMethodDescriptionvoidOnAfterResponse(HttpContext context) Callback called just after the HTTP response is receivedvoidOnBeforeRequest(HttpRequest request) Callback called just before the HTTP request is sent
-
Method Details
-
OnBeforeRequest
Callback called just before the HTTP request is sent- Parameters:
request- The HTTP request to be executed
-
OnAfterResponse
Callback called just after the HTTP response is received- Parameters:
context- Context for the HTTP call
-