ruckus / quickbooks-ruby

Quickbooks Online REST API V3 - Ruby
MIT License
374 stars 302 forks source link

Allow Faraday adapter to be configured #549

Closed danielnho22 closed 3 years ago

danielnho22 commented 3 years ago

We want to be able to parallelize some the work that we do with quickbooks-ruby, but Net::HTTP is not thread-safe. To ensure thread-safety, we want to use Faraday's net-http-persistent adapter, instead.

This PR allows developers using the gem to choose which Faraday adapter to use.

The default is still :net_http, but you can now set: Quickbooks.http_adapter.