-
- All Known Implementing Classes:
WebClientContextPropagation
,WebClientMeter
,WebClientMetrics
,WebClientSecurity
,WebClientTracing
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WebClientService
Extension that can modify outgoing request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Single<WebClientServiceRequest>
request(WebClientServiceRequest request)
Method which is called before send actual request.default Single<WebClientServiceResponse>
response(WebClientRequestBuilder.ClientRequest request, WebClientServiceResponse response)
Method which is called when the last byte of the response is processed.
-
-
-
Method Detail
-
request
Single<WebClientServiceRequest> request(WebClientServiceRequest request)
Method which is called before send actual request.- Parameters:
request
- client service request- Returns:
- completion stage of the client service request
-
response
default Single<WebClientServiceResponse> response(WebClientRequestBuilder.ClientRequest request, WebClientServiceResponse response)
Method which is called when the last byte of the response is processed.- Parameters:
request
- client service requestresponse
- client service response- Returns:
- completion stage of the client service response
-
-