合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
# swoole_http2_client->__construct 构造方法,与`swoole_http_client`的构造方法参数完全一致,共接受3个参数。 ```php function swoole_http2_client->__construct($host, $port, $ssl = false) ``` * `$host` 服务器的地址,如果未设置`host`头,将自动使用`$host`参数作为默认的`host`头 * `$port` 端口号,SSL一般为443,非SSL一般为80 * `$ssl` 是否启用SSL加密,需要依赖`openssl`