kphp
kphp copied to clipboard
Add support for `curl_setopt()` and `curl_multi_setopt()` with options to set callback event handlers
The ability to set automatic event handlers via functions is needed to fully work with HTTP/2 .
Particularly, support of the following options for curl_setopt()
:
- CURLOPT_HEADERFUNCTION
- CURLOPT_PASSWDFUNCTION
- CURLOPT_PROGRESSFUNCTION
- CURLOPT_READFUNCTION
- CURLOPT_WRITEFUNCTION
- CURLMOPT_PUSHFUNCTION for
curl_multi_setopt()
.