Class OpenFeignDistanceConfiguration
java.lang.Object
com.unosquare.carmigo.configuration.OpenFeignDistanceConfiguration
Open feign configuration to communicate with Distance API.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfeign.RequestInterceptor
Intercepts a request to Distance to add some headers.
-
Constructor Details
-
OpenFeignDistanceConfiguration
public OpenFeignDistanceConfiguration()
-
-
Method Details
-
requestInterceptor
@Bean public feign.RequestInterceptor requestInterceptor()Intercepts a request to Distance to add some headers.- Returns:
- a
RequestInterceptor
.
-