-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Replace the abandoned guzzle/parser #34
Conversation
👍 |
@@ -3,7 +3,7 @@ | |||
namespace React\HttpClient; | |||
|
|||
use Evenement\EventEmitterTrait; | |||
use Guzzle\Parser\Message\MessageParser; | |||
use GuzzleHttp\Psr7 as g7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry to nitpick but can we come up with another alias? I used gPsr
other places. At the rate Guzzle releases major versions this could quickly get mixed up with misunderstanding "Guzzle7".
I took my own advice :) reactphp/http#37 |
@cboden cheers I took your advise and will merge it 👍 |
$parser = new MessageParser(); | ||
$parsed = $parser->parseResponse($data); | ||
$psrResponse = gPsr\parse_response($data); | ||
$headers = array_map(function(&$val) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&
should be removed. My fault on copy/paste fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doh! Will fix it 👍
👍 |
If no one objects to this by tomorrow morning I'm merging it and tagging 0.4.5. |
LGTM |
Replace the abandoned guzzle/parser
Or you just merge it 👍 |
fixes #23
overrules #26
This replaces the old abandoned guzzle/parser with guzzlehttp/psr7