Class JsonContentTypeHeaderInterceptor
java.lang.Object
com.github.twitch4j.common.feign.interceptor.JsonContentTypeHeaderInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
Injects the content-type application/json into all PUT,PATCH,POST requests that didn't specify a content-type
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
JsonContentTypeHeaderInterceptor
public JsonContentTypeHeaderInterceptor()
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate t) Interceptor- Specified by:
apply
in interfacefeign.RequestInterceptor
- Parameters:
t
- Feign RequestTemplate
-