Forum: Ruby net/http get info like elapsed time, latency, connect time.

97334b75c93574ed3e514f33849f0953?d=identicon&s=25 Mario Ruiz (tcblues)
on 2017-02-28 18:31
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?
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.