Open doryphores opened 9 months ago
A small change to Twilio::HTTP::Client to allow us to configure the Faraday adapter with configure_connection.
Twilio::HTTP::Client
configure_connection
For example:
client = Twilio::REST::Client.new(account_sid, auth_token) client.http_client.configure_connection do |faraday| faraday.adapter :typhoeus, verbose: true end
Without this change, the above configuration would be ignored because the adapter is reset after the configure connection blocks are applied.
And we cannot pass params to the adapter with the adapter accessor on the client instance:
adapter
client = Twilio::REST::Client.new(account_sid, auth_token) # here, we cannot configure the typhoeus adapter with verbose: true client.http_client.adapter = :typhoeus
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.
Fixes
A small change to
Twilio::HTTP::Client
to allow us to configure the Faraday adapter withconfigure_connection
.For example:
Without this change, the above configuration would be ignored because the adapter is reset after the configure connection blocks are applied.
And we cannot pass params to the adapter with the
adapter
accessor on the client instance:Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.