Skip to content

Asynchronous response body functions

Choose a tag to compare

@g105b g105b released this 01 Jul 18:39
· 39 commits to master since this release
292e850

When you have a Response object, you can now call the standard text(), json(), etc. functions, which return a Promise that will resolve with the appropriate type. When set up with an async loop, this can achieve multiple concurrent response streaming.

This was implemented for usage within https://www.php.gt/fetch

What's Changed

Full Changelog: v1.1.10...v1.2.0