Interface RequestIntercept

All Known Implementing Classes:

public interface RequestIntercept
Interceptor for before the request is made and after the response is obtained.
  • Method Details

    • 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.