The SWOOLE_HOOK_ALL
flag will enable all hooks within the coroutine scheduler.
Since v4.5.4
this hook contains SWOOLE_HOOK_CURL
.
<?php
// After v4.5.4
Co::set(['hook_flags' => SWOOLE_HOOK_ALL]);
// All hooks including CURL, before v4.5.4
Co::set(['hook_flags' => SWOOLE_HOOK_ALL | SWOOLE_HOOK_CURL]);