Class JsonContentTypeHeaderInterceptor
java.lang.Object
com.github.twitch4j.common.feign.interceptor.JsonContentTypeHeaderInterceptor
- All Implemented Interfaces:
feign.RequestInterceptor
public class JsonContentTypeHeaderInterceptor
extends java.lang.Object
implements feign.RequestInterceptor
Injects the content-type application/json into all PUT,PATCH,POST requests that didn't specify a content-type
-
Constructor Summary
Constructors Constructor Description JsonContentTypeHeaderInterceptor() -
Method Summary
Modifier and Type Method Description voidapply(feign.RequestTemplate t)InterceptorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JsonContentTypeHeaderInterceptor
public JsonContentTypeHeaderInterceptor()
-
-
Method Details
-
apply
public void apply(feign.RequestTemplate t)Interceptor- Specified by:
applyin interfacefeign.RequestInterceptor- Parameters:
t- Feign RequestTemplate
-