Interface RequestInterceptor
-
- All Superinterfaces:
Function<HttpRequest,HttpRequest>
,UnaryOperator<HttpRequest>
- All Known Subinterfaces:
Auth
- All Known Implementing Classes:
Basic
,PayloadSerializingInterceptor
,Sigv4
public interface RequestInterceptor extends UnaryOperator<HttpRequest>
Interceptors are run as a list to allow modification of the HTTP request before it is sent to the server. The first interceptor will be provided with aHttpRequest
that holds aRequestMessage
in the body. The final interceptor should contain abyte[]
in the body.