OkHttpClient – Get real request/response headers log

Request headers:

I: .Sending request http://www.some_site.com/some_file.js Headers:
Host: www.some_site.com
Connection: Keep-Alive
Accept-Encoding: gzip
User-Agent: okhttp/3.8.1
If-Modified-Since: Thu, 14 Sep 2017 11:35:41 GMT

Response headers:

I: . 200 – OK => Received networkResponse for http://www.some_site.com/some_file.js in 141.2ms

vg_id: 1
X-me: 10
Content-Type: application/json; charset=utf-8
Last-Modified: Thu, 14 Sep 2017 11:40:20 GMT
Accept-Ranges: bytes
VX-Cache: HIT
WAI: 01
V-TTL: 6
backend-cache-control: s-maxage=900
Content-Encoding: gzip
Content-Length: 9847
Vary: Accept-Encoding
Date: Thu, 14 Sep 2017 11:41:52 GMT
Connection: keep-alive

Class code:


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.