onReady(function($cli, $body, $header){ var_dump($body, $header); }); $client->post(array('hello' => 'world')); $client = new Swoole\Async\HttpClient('http://www.baidu.com/'); $client->onReady(function($cli, $body, $header){ var_dump($body, $header); }); $client->get();