EventHttpConnection::__construct
PHP function
Edit on GitHub ✎
(PECL event >= 1.2.6-beta)
Constructs EventHttpConnection object
Description
EventHttpConnection::__construct(EventBase $base, EventDnsBase $dns_base, string $address, int $port, EventSslContext $ctx = null)
Constructs EventHttpConnection object.
Parameters
baseAssociated event base.
dns_baseIf
dns_baseis null, hostname resolution will block.addressThe address to connect to.
portThe port to connect to.
ctxEventSslContextclass object. Enables OpenSSL.NoteThis parameter is available only if
Eventis compiled with OpenSSL support and only withLibevent 2.1.0-alphaand higher.
Changelog
| Version | Description |
|---|---|
| PECL event 1.9.0 | OpenSSL support (ctx) added. |