One way of accomplishing it is using faraday gem, and Faraday.default_adapter = :net_http_persistent For the trivial implementation you can refer to: https://gist.github.com/2768946