Class FeignAcceptGzipEncodingInterceptor
java.lang.Object
org.springframework.cloud.openfeign.encoding.BaseRequestInterceptor
org.springframework.cloud.openfeign.encoding.FeignAcceptGzipEncodingInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
Enables the HTTP response payload compression by specifying the
Accept-Encoding
headers. Although this does not yet mean that the requests will be compressed, it
requires the remote server to understand the header and be configured to compress
responses. Still no all responses might be compressed based on the media type matching
and other factors like the response content length.- Author:
- Jakub Narloch
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates new instance ofFeignAcceptGzipEncodingInterceptor
. -
Method Summary
Methods inherited from class org.springframework.cloud.openfeign.encoding.BaseRequestInterceptor
addHeader, getProperties
-
Constructor Details
-
FeignAcceptGzipEncodingInterceptor
Creates new instance ofFeignAcceptGzipEncodingInterceptor
.- Parameters:
properties
- the encoding properties
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate template)
-