You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you are using a static internal http client based on curl. It would be good if there would be an option to set an alternative http client (e.g. guzzlephp, php streams or any psr18 compatible client).
This would be usefull e.g. when you can`t use curl, or when you are using any framework with its own httpclient.
I would suggest to add a new option to the options array e.g.
The option httpClient should accept any client matching to an from predefined defined "HttpClientInterface" and you change your code to only use HttpClientInterface to be compatible with all comming implementations on this interface.
Benefit would be, you only need to implement the basic logic of passing new clients based on this interface, createing different clients could be done by the community.
examples how this could be done can be found in other projects using changeable http clients like here
EDIT:
This feature would automatically resolve #14 because you could ad or change an alternative curl client with custom config.
The text was updated successfully, but these errors were encountered:
Currently you are using a static internal http client based on curl. It would be good if there would be an option to set an alternative http client (e.g. guzzlephp, php streams or any psr18 compatible client).
This would be usefull e.g. when you can`t use curl, or when you are using any framework with its own httpclient.
I would suggest to add a new option to the options array e.g.
The option
httpClient
should accept any client matching to an from predefined defined "HttpClientInterface" and you change your code to only use HttpClientInterface to be compatible with all comming implementations on this interface.Benefit would be, you only need to implement the basic logic of passing new clients based on this interface, createing different clients could be done by the community.
examples how this could be done can be found in other projects using changeable http clients like here
EDIT:
This feature would automatically resolve #14 because you could ad or change an alternative curl client with custom config.
The text was updated successfully, but these errors were encountered: