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.
We want to be able to parallelize some the work that we do with
quickbooks-ruby
, butNet::HTTP
is not thread-safe. To ensure thread-safety, we want to use Faraday'snet-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
.