PHP - Manual: Swoole\Http\Client::__construct
2024-12-21
(PECL swoole >= 1.9.0)
Swoole\Http\Client::__construct — Construct the async HTTP client.
$host
, string $port
= ?, bool $ssl
= ?)
host
The hostname of the remote host.
port
The port number of the remote host.
ssl
Whether to enable SSL.
官方地址:https://www.php.net/manual/en/swoole-http-client.construct.php