@FunctionalInterface public interface ClientHttpRequestInterceptor
Implementations of this interface can be
registered
with the WebClient
.
WebClient
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<ClientHttpResponse> |
intercept(HttpMethod method,
URI uri,
ClientHttpRequestInterceptionChain chain)
Intercept the client HTTP request
|
reactor.core.publisher.Mono<ClientHttpResponse> intercept(HttpMethod method, URI uri, ClientHttpRequestInterceptionChain chain)
The provided ClientHttpRequestInterceptionChain
instance allows the interceptor to delegate the request
to the next interceptor in the chain.
An implementation might follow this pattern:
method
and uri
ClientHttpRequestInterceptionChain
.chain.intercept(method, uri, requestCallback)
.method
- the HTTP request methoduri
- the HTTP request URIchain
- the request interception chainClientHttpResponse