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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
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?
This topic is locked and can not be replied to.