title: OKHttp get http transferStart time and transferDone tiem under Android
body: <p>I'm trying port a system from Linux to Android, something like <a href="https://blog.golang.org/http-tracing" rel="nofollow noreferrer">http trace</a>, Likely <a href="https://github.com/davecheney/httpstat" rel="nofollow noreferrer">httpstat outputs</a></p>
  
  <pre><code>  DNS Lookup   TCP Connection   TLS Handshake   Server Processing   Content Transfer
  [    302ms  |         416ms  |       1353ms  |            403ms  |             0ms  ]
              |                |               |                   |                  |
     namelookup:302ms          |               |                   |                  |
                         connect:719ms         |                   |                  |
                                     pretransfer:2079ms            |                  |
                                                       starttransfer:2483ms           |
                                                                                  total:2483ms
  </code></pre>
  
  <p>I could make a self tls stack replace initial one so that I could get TLS Handshake start and over time, And I need three data like </p>
  
  <p>"<strong>first byte time</strong>": <a href="https://golang.org/pkg/net/http/httptrace/#ClientTrace" rel="nofollow noreferrer">FirstResponseByte</a></p>
  
  <p>"<strong>download time</strong>": (for the content was downloaded Finish)</p>
  
  <p>"<strong>redirect time</strong>": (if have redirect)</p>
  
  <p>And for now I'm not really familiar with OKHttp, And I searched It seems did not expose these data.</p>
  
  <p>So Is there any way I could get there params? Or even with Other implementations like HttpUrlConnection?</p>