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

EventHttp::__constructConstructs EventHttp object(the HTTP server)


Associated event base.


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.