public EventHttp::__construct ( EventBase
EventHttp::__construct — Constructs EventHttp object(the HTTP server)
Associated event base.
EventSslContext class object. Turns plain HTTP server into HTTPS server. It means that if
ctxis 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.