title: How to handle this OkHttp header response?
body: <p>The API response I'm requesting contains multiple pages. In the header of the response is the current page and the last page sent in a format I don't know how to handle. All the other headers are Strings. If I for example request the following header:</p>
  
  <pre><code>Request request = new Request.Builder().url(url).head().build();
  Response response = client.newCall(request).execute();
  return response.header("date").toString();
  </code></pre>
  
  <p>I get this result:</p>
  
  <pre><code>Wed, 06 Jun 2018 10:00:31 GMT
  </code></pre>
  
  <p>The wanted result is under the header "link" and is showed in Postman as follows:</p>
  
  <p>Link →<a href="https://api.schiphol.nl:443/public-flights/airlines?sort=%20publicname&amp;app_id=***&amp;app_key=***&amp;page=7" rel="nofollow noreferrer">https://api.schiphol.nl:443/public-flights/airlines?sort=%20publicname&amp;app_id=***&amp;app_key=***&amp;page=7</a>; rel="last", <a href="https://api.schiphol.nl:443/public-flights/airlines?sort=%20publicname&amp;app_id=***&amp;app_key=***&amp;page=1" rel="nofollow noreferrer">https://api.schiphol.nl:443/public-flights/airlines?sort=%20publicname&amp;app_id=***&amp;app_key=***&amp;page=1</a>; rel="next"</p>
  
  <p>When I try to return the header "link" I get a null pointer. How do I do this?</p>
  
  <p>Thanks in advance!</p>