Package com.bandwidth.http.client
Interface HttpCallback
-
public interface HttpCallback
Callback to be called before and after the HTTP call for an endpoint is made.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onAfterResponse(HttpContext context)
Callback called just after the HTTP response is received.void
onBeforeRequest(HttpRequest request)
Callback called just before the HTTP request is sent.
-
-
-
Method Detail
-
onBeforeRequest
void onBeforeRequest(HttpRequest request)
Callback called just before the HTTP request is sent.- Parameters:
request
- The HTTP request to be executed
-
onAfterResponse
void onAfterResponse(HttpContext context)
Callback called just after the HTTP response is received.- Parameters:
context
- Context for the HTTP call
-
-