-
- All Known Implementing Classes:
BasicAuthIntercept
public interface RequestInterceptInterceptor for before the request is made and after the response is obtained.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidafterResponse(HttpResponse<?> response, HttpClientRequest request)After the response has been received.default voidbeforeRequest(HttpClientRequest request)Before the request has been made.
-
-
-
Method Detail
-
beforeRequest
default void beforeRequest(HttpClientRequest request)
Before the request has been made.Typically we can add headers or modify the request prior to it being sent.
-
afterResponse
default void afterResponse(HttpResponse<?> response, HttpClientRequest request)
After the response has been received.
-
-