array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'swoole-http-client.construct.php', 1 => 'Swoole\\Http\\Client::__construct', ), 'up' => array ( 0 => 'class.swoole-http-client.php', 1 => 'Swoole\\Http\\Client', ), 'prev' => array ( 0 => 'swoole-http-client.close.php', 1 => 'Swoole\\Http\\Client::close', ), 'next' => array ( 0 => 'swoole-http-client.destruct.php', 1 => 'Swoole\\Http\\Client::__destruct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/http/client/construct.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL swoole >= 1.9.0)
Swoole\Http\Client::__construct — Construct the async HTTP client.
host
The hostname of the remote host.
port
The port number of the remote host.
ssl
Whether to enable SSL.