title: How to get the request url in retrofit 2.0 with rxjava?
body: <p>I'm trying to upgrade to Retrofit 2.0 and add RxJava in my android project. I'm making an api call and want to retrieve the url and it with the response data in sqlite as a cache</p>
  
  <pre><code>Observable&lt;MyResponseObject&gt; apiCall(@Body body);
  </code></pre>
  
  <p>And in the RxJava call:</p>
  
  <pre><code>myRetrofitObject.apiCall(body).subscribe(new Subscriber&lt;MyResponseObject&gt;() {
      @Override
      public void onCompleted() {
  
      }
  
      @Override
      public void onError(Throwable e) {
  
      }
  
      @Override
      public void onNext(MyResponseObject myResponseObject) {
  
      }
  });
  </code></pre>
  
  <p>In Retrofit 1.9, we could get the url in the success callback:</p>
  
  <pre><code>        @Override
          public void success(MyResponseObject object, Response response) {
              String url=response.getUrl();
              //save object data and url to sqlite
          }
  </code></pre>
  
  <p>How do you do this with Retrofit 2.0 using RxJava?</p>