We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I really want to pass the configuration to Guzzle HTTP Client for setting timeout, and I have a proposal for that.
Add $clientOptions to the constructor of /src/Client/Server/Server.php
$clientOptions
/src/Client/Server/Server.php
abstract class Server { /** * @var array */ protected $clientOptions; /** * Create a new server instance. * * @param ClientCredentialsInterface|array $clientCredentials * @param SignatureInterface $signature * @param array $clientOptions */ public function __construct($clientCredentials, SignatureInterface $signature = null, $clientOptions)
The text was updated successfully, but these errors were encountered:
I see what you're saying. I'm almost leaning to adding something like:
$server->resolveHttpClientUsing(function (): \GuzzleHttp\Client { // Return your client here });
This would keep the signature the same as currently. Note: In the next major version, the client will be resolved externally to each server instance.
Sorry, something went wrong.
No branches or pull requests
I really want to pass the configuration to Guzzle HTTP Client for setting timeout, and I have a proposal for that.
Add
$clientOptions
to the constructor of/src/Client/Server/Server.php
The text was updated successfully, but these errors were encountered: