Releases: PhpGt/Fetch
End-to-end promises with React
This release has added ReactPHP's Promise library, as it is a very robust solution.
However, it is not compatible with PSR-7, so the coming 0.5.x releases will find a way to have the best of both worlds.
PSR-7 compatible
Merge pull request #25 from PhpGt/16-psr7 16 psr7
Bring up to date
Since initial development on this library started, PHPUnit and the PHP-HTTP organisation have refactored a lot of their code structure. This release brings everything up to date, fixes the basic tests that are currently available in the project.
PSR-7 methods
Rewriting existing logic with PSR-7 compatibility
Consistent namespace
Everything is loaded through the Gt\Fetch namespace, as per the PhpGt styleguide.
Response content
Now the response's text()
and json()
promises are implemented.
There is a lot of refactoring and unit testing to be done now that the proof of concept is complete.
Response object
Promises are passed the response object containing the headers, body and response info.
Request, complete
The requests are being made asynchronously now. Response object is to be developed next. For now, the curl object is returned as the response.
Http tests
All methods are tested before work starts on the Request class.