Persistent HTTP connections for HTTParty!
Clone or download
soupmatt Merge pull request #8 from pobocks/issue_7
Fixes #7 - Rewrite links correctly in
Latest commit 445baf0 Aug 21, 2016


Persistent HTTP connections for HTTParty!

Gem Version

Build Status

Dependency Status

Code Climate


Add this line to your application's Gemfile:

gem 'persistent_httparty'

And then execute:

$ bundle

Or install it yourself as:

$ gem install persistent_httparty



Just call persistent_connection_adapter and then use HTTParty as normal.

class Twitter
  include HTTParty

You can also pass in parameters to the persistent_http gem. The regular HTTParty config will be passed through as applicable.

class MyCoolRestClient
  include HTTParty
  persistent_connection_adapter :name => 'my_cool_rest_client',
                                :pool_size => 2,
                                :idle_timeout => 10,
                                :keep_alive => 30


Distributed under the MIT License

Special Thanks

  • To @jnunemaker for maintaining a tight ship on the extremely useful httparty
  • To @bpardee for writing the best persistent http connection library for ruby I've found in persistent_http
  • To @vibes for letting me open source as much of the work I do there as possible.


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request