PhpGt / Fetch

Asynchronous HTTP client with promises.

Home Page:https://www.php.gt/fetch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asynchronous response streaming.

g105b opened this issue · comments

curl_multi is great, but using it as in any example found online is still kind-of synchronous.

Reading large responses will still block the program until the whole response is read, unless using a stream function (almost undocumented online).

https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html