Use Faraday to wrap all http requests. #16

Open
wants to merge 2 commits into from

2 participants

@felixyz

Using Faraday makes it possible to use a number of different http client libraries. In particular, I can now use the Synchrony http functionality by setting

client.http_adapter = :em_synchrony

Felix Holmgren added some commits Feb 20, 2013
Felix Holmgren Wrap all http using Faraday.
  * Makes it easy to switch between http clients.
  * Currently set to use Patron. The speed is on par with HTTPClient.
94ecd70
Felix Holmgren Allow user to switch underlying http client. 710fcea
@thibaudgg

👍

@felixyz

Well, I think I screwed up on a couple of details here, but if there's interest I can fix them up and make a new pr. We're using the fork with Faraday support and it's very convenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment