Adds start and finish methods to Papertrail::HttpClient and Papertrail::Connection, mimicking Net::HTTP#start. I wanted to use Forwardable/def_delegators, but needed a different return or yield value.
Modified any CLI tool that makes multiple API calls, but it's primarily intended for papertrail -f. With HTTP Keep-Alive, we can avoid renegotiating a separate TLS connection every two seconds.
Adds
start
andfinish
methods toPapertrail::HttpClient
andPapertrail::Connection
, mimicking Net::HTTP#start. I wanted to use Forwardable/def_delegators, but needed a different return or yield value.Modified any CLI tool that makes multiple API calls, but it's primarily intended for
papertrail -f
. With HTTP Keep-Alive, we can avoid renegotiating a separate TLS connection every two seconds.