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