-
Notifications
You must be signed in to change notification settings - Fork 192
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
Guzzle6/PSR-7 support #83
Comments
So its either PSR-7 + Guzzle or PSR-7 + Php-http? |
@behunin yes, or maybe more appropriately |
I think we need a poll taken here but, my vote is Guzzle6. I like the way it handles async and batching for the Shopping API Project I am working on. Haven't taken the time to really look into PHP-HTTP though I am not really wanting to be dependent on another project that is in beta or alpha. I need this working before the big shopping boom. |
I'm currently working on a PR with these goals:
Let me know what you think, |
So it sounds like option We could leave the subscriber interfaces as they are, and reimplement each of them as PSR7 middlewares. So each This would be my suggestion, since the actual logic in each |
I agree the logic is pretty minimal, but ideally the subscriber wouldn't be worrying about caching. If we pull that type of logic out it's one less thing to have to duplicate in the middleware implementation. To me, the subscriber should be as simple as,
|
SGTM |
I've just updated #81. It supports PSR7 and PHP-HTTP. There are 4 "FIXME"'s in the comments and I have to rewrite a lot of the tests. Any input and suggestions are appreciated. FYI. The PHP-HTTP is aiming on tagging a stable release this year. The current state of the library is "pretty stable". |
resolved - guzzle 6 is now in |
The lack of support for Guzzle6 in this library is causing problems for our users (see googleapis/google-api-php-client#720). We have a few options:
PSR-7
-compatible HTTP Clients, and may be able to play nicely with the third option (see below)Some additional thoughts:
PSR-7
-compatible HTTP library, that would be a huge community win.The text was updated successfully, but these errors were encountered: