No commit activity in last 3 years
No release in over 3 years
Persistent HTTP connections for HTTParty using the persistent_http gem. Keep the party alive!
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.13.0

Runtime

 Project Readme

persistent_httparty

Persistent HTTP connections for HTTParty!

Gem Version

Build Status

Dependency Status

Code Climate

Installation

Add this line to your application's Gemfile:

gem 'persistent_httparty'

And then execute:

$ bundle

Or install it yourself as:

$ gem install persistent_httparty

Requirements

Usage

Just call persistent_connection_adapter and then use HTTParty as normal.

class Twitter
  include HTTParty
  persistent_connection_adapter
end

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
end

License

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.

Contributing

  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