10
Como adicionar cabeçalhos ao interceptor de solicitação OkHttp?
Tenho este interceptor que adicionei ao meu cliente OkHttp: public class RequestTokenInterceptor implements Interceptor { @Override public Response intercept(Chain chain) throws IOException { Request request = chain.request(); // Here where we'll try to refresh token. // with an retrofit call // After we succeed we'll proceed our request Response response …