jp.co.freee.accounting.DefaultHeaders Maven / Gradle / Ivy
package jp.co.freee.accounting;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
class DefaultHeadersInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
request = request.newBuilder()
.addHeader("X-Api-Version", "2020-06-15")
.build();
return chain.proceed(request);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy