Class FeignAcceptGzipEncodingInterceptor

java.lang.Object
org.springframework.cloud.openfeign.encoding.BaseRequestInterceptor
org.springframework.cloud.openfeign.encoding.FeignAcceptGzipEncodingInterceptor
All Implemented Interfaces:
feign.RequestInterceptor

public class FeignAcceptGzipEncodingInterceptor extends BaseRequestInterceptor
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 Details

  • Method Details

    • apply

      public void apply(feign.RequestTemplate template)