Net/http get info like elapsed time, latency, connect time

When using the net/http library I would like to get the time spent on
the get, post, put… I am performing, and the latency, connect time…
all this kind of data.

Something like this:
Init: 2017-02-28 10:49:57 GMT
Load time: 77
Connect Time: 3
Latency: 77
Size in bytes: 2243
Headers size in bytes: 201
Body size in bytes: 2042
Response code: 200
Response message: OK

Some of this data I know that it comes with the response but what about
the rest?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs