Repository navigation
feat(google-apis-core): allow setting the faraday adapter to use - #27337
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
3628f47 to
e86e0f6
Compare
|
@HoneyryderChuck Thanks for opening this PR. Can you also open a corresponding new feature request issue? You can just copy and paste your description above, I think it's clear what you want. |
|
@quartzmo any updates on this one? |
quartzmo
left a comment
There was a problem hiding this comment.
@HoneyryderChuck I really apologize for the long wait on this. Thanks so much for this contribution. Just a couple changes and we'll get it in.
e86e0f6 to
cba56b9
Compare
The application I work on uses httpclient and relies on its persistent connection feature and request hedging to keep p99 google storage uploads to a minimum. v1 changed to faraday, which is understandable, but the default faraday adapter uses net-http, which does not do persistent requests, and would severely limit our ability to seamlessly upgrade. This patch introduces a new client option, `:adapter`, which allows setting a default adapter (faraday has several) which supports persistent connections via: ```ruby Google::Apis::ClientOptions.default.adapter = :httpx # or :net_http_persistent ```
cba56b9 to
ce92960
Compare
|
@quartzmo done |
The application I work on uses httpclient and relies on its persistent connection feature and request hedging to keep p99 google storage uploads to a minimum. v1 changed to faraday, which is understandable, but the default faraday adapter uses net-http, which does not do persistent requests, and would severely limit our ability to seamlessly upgrade.
This patch introduces a new client option,
:adapter, which allows setting a default adapter (faraday has several) which supports persistent connections via:Closes #27339 27339