hyperf / hyperf/guzzle

Why do you ignored some http setting

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9
Forks
9
PR merge metrics
No merged PRs in 30d

Description

    Using hyperf/guzzle as a dependency in my project. But found that I can't pass HTTP client settings. Finally, I found that because you ignored these options I passed but only keep `delay` and `timeout` in `\Hyperf\Guzzle\RingPHP\CoroutineHandler::getSettings`.
https://github.com/hyperf/guzzle/blob/cae5b639bf41db207618c09d9e227de3bf5efed8/src/RingPHP/CoroutineHandler.php#L76
![image](https://user-images.githubusercontent.com/6140347/147715084-d85778d2-0709-49cb-8670-6efcbab880f8.png)
    What I want is pass the HTTP proxy in to inner `Swoole\Coroutine\Http\Client` in order to use `http_proxy_host` and `http_proxy_port`.
    The only way I can do now is hard coding here with these settings. But It's not the way I want. `\Hyperf\Guzzle\RingPHP\CoroutineHandler::__invoke`
![image](https://user-images.githubusercontent.com/6140347/147715562-8c6accd9-4902-499b-9e50-cf2ea9646e5f.png)
    Could you please provide some better solutions for this situation?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.