9
¿Cómo agregar encabezados al interceptor de solicitudes OkHttp?
Tengo este interceptor que agrego a mi 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 …