New issue
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
Implementing PSR-18 adapter for amphp/http-client v5 #306
Comments
Your link to psr/http-client-implementation doesn't work, and whom needs such a client anyway? |
That's a matter of adoption. Once major sdks will use this interface instead of requiring guzzle or symfony http-client directly (see FriendsOfPHP/well-known-implementations#2), it will be possible to use them asynchronously in an AMP event-loop. I'm opening this issue to gather feedbacks and find if there is something already existing. |
Yes, there's https://github.com/amphp/http-client-psr7/tree/v2 already. However, the README is still old. |
I guess this can be closed? |
@nicolas-grekas I think it still needs an update. |
Thanks to fibers, the
amphp/http-client v5
has a "sync" interface: it gets rid of promises & generators. It is now possible to implement the PSR-18: HTTP Client.Benefits:
psr/http-client-implementation
could become asynchronous when used with AMP.The text was updated successfully, but these errors were encountered: