Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Swoole\Http\Client::closeSwoole\Http\Client::__destruct>
^Swoole\Http\ClientLast updated: Mon, 26 Oct 2026

Swoole\Http\Client::__construct

(PECL swoole >= 1.9.0)

Swoole\Http\Client::__construct — Construct the async HTTP client.

Description

public function Swoole\Http\Client::__construct(string $host, string $port = ?, bool $ssl = ?)

Parameters

host

The hostname of the remote host.

port

The port number of the remote host.

ssl

Whether to enable SSL.


<Swoole\Http\Client::closeSwoole\Http\Client::__destruct>
^Swoole\Http\ClientLast updated: Mon, 26 Oct 2026