title: Retrofit 2/Rxjava - retrieve headers from response
body: <pre><code>@GET("/city/{cityId}/category/all")
  Observable&lt;MyDictionary&gt; getDictionaries(@Path(value = "cityId", encoded = true) String cityId, @HeaderMap Map&lt;String, String&gt; headers);
  </code></pre>
  
  <p>Call method to retrieve data:</p>
  
  <pre><code>service.getDictionaries(cityId, headersMap)
                  .subscribeOn(Schedulers.io())
                  .observeOn(AndroidSchedulers.mainThread())
                  .subscribe(resp -&gt;
                  {
                       /*...............*/
  
                  }, throwable -&gt;
                  {
                       /*...............*/
                  });
  </code></pre>
  
  <p>I can get reposne eaisly. But I also need to know response headers. How to access them in my code? Any tips? I'm getting only body, how to get headers also?</p>