title: Is there a replacement for the RequestInterceptor in Retrofit 2?
body: <p>I ran into a problem that <code>RequestInterceptor</code> has been removed from the <strong>Retrofit 2</strong>. Earlier, my RestAdapter builder was as follows:</p>
  
  <pre><code>private RestAdapter.Builder getBuilder(RequestInterceptor requestInterceptor) {
      RestAdapter.Builder builder = new RestAdapter.Builder()
              .setEndpoint(BuildConfig.SERVER_URL)
              .setClient(connectionClient)
              .setRequestInterceptor(requestInterceptor)
              .setConverter(new JacksonConverter());
      return builder;
  }
  </code></pre>
  
  <p>As far as I know, at the moment it's recommended to use <code>interceptor</code> from the <code>OkHttp</code> library instead of the <code>RequestInterceptor</code>.</p>
  
  <p>I couldn't find the exemplary implementation of this approach, therefore, be grateful for any help in this matter.</p>
  
  <p>Thanks!</p>