public   EventHttp::__construct    (     EventBase     $base      [,     EventSslContext     $ctx     = NULL     ] )

EventHttp::__constructConstructs EventHttp object(the HTTP server)

base

Associated event base.

ctx

EventSslContext class object. Turns plain HTTP server into HTTPS server. It means that if ctx is configured correctly, then the underlying buffer events will be based on OpenSSL sockets. Thus, all traffic will pass through the SSL or TLS.

Замечание:

This parameter is available only if Event is compiled with OpenSSL support and only with Libevent 2.1.0-alpha and higher.