EasyPost / easypost-php

PHP client for EasyPost API
https://easypost.com/docs/api
MIT License
167 stars 57 forks source link

[Feat]: Support Passing Guzzle Client Options #317

Open NHZEX opened 10 months ago

NHZEX commented 10 months ago

Feature Request Is New

Description of the feature

Allow passing options for instantiating Guzzle during runtime, enabling lower-level request configurations such as setting network proxies.

Justintime50 commented 9 months ago

Thanks for submitting this @NHZEX! We are looking into the ability to setup network proxies across all our libs holistically. Did you have other "lower-level" config that you wanted us to consider aside from proxies?

NHZEX commented 9 months ago

We can provide a handler option to add middleware, such as enabling the ability to retry network failures with caseyamcl/guzzle_retry_middleware.

Perhaps you could consider allowing support for an externally provided Client instance, so that any options can be customized. This could possibly be part of issue #318.

Please consider opening up more options while also evaluating any potential side effects on the current library itself.