$darkmode
this class implements the listeners for the HttpServer class More...
Public Member Functions | |
| addHandlers (hash< string, hash< HttpHandlerConfigInfo >> handler_info) | |
| add handlers to the listener | |
| constructor (HttpServer server, string name, int id, Sequence ss, *hash< HttpListenerOptionInfo > opts) | |
| creates the object with the given parameters More... | |
| reloadCertificate () | |
| Reloads the HTTPS certificate from the original location. More... | |
| removeHandler (HttpServer::AbstractHttpRequestHandler handler) | |
| removeHandler (string handler_name) | |
Static Public Member Functions | |
| static bool | stopIfNoHandlers (HttpServer::HttpListener listener) |
| stop listeners if there are no handlers More... | |
Protected Attributes | |
| bool | get_remote_certs = False |
| get remote certificates | |
| *LoggerInterface | logger |
| listener-specific logger; if not present, then the server's logger will be used | |
| bool | ssl_accept_all_certs = True |
| accept all certificates | |
| int | ssl_verify_flags = SSL_VERIFY_NONE |
| SSL verify flags. | |
| const | SslVerifyMap |
| map for converting ssl verify flags to strings | |
this class implements the listeners for the HttpServer class
this class is private; it's not exported in the module API
| HttpServer::HttpListener::constructor | ( | HttpServer | server, |
| string | name, | ||
| int | id, | ||
| Sequence | ss, | ||
| *hash< HttpListenerOptionInfo > | opts | ||
| ) |
creates the object with the given parameters
| server | the HTTP server |
| name | the listener name |
| id | the listener ID |
| ss | the listener connection sequence |
| opts | listener options |
| HttpServer::HttpListener::reloadCertificate | ( | ) |
Reloads the HTTPS certificate from the original location.
Subsequent connections will use the new certificate definition; the listener must have been started with the location information for the X.509 certificate and private key, or a REFRESH-CERTIFICATE error is raised
| REFRESH-CERTIFICATE-ERROR | not an HTTPS listener or certificate location information not present |
| HttpServer::HttpListener::removeHandler | ( | HttpServer::AbstractHttpRequestHandler | handler | ) |
Remove handler from the listener.
| INVALID-HANDLER-ERROR | handler is not present in the listener's handler list |
| HttpServer::HttpListener::removeHandler | ( | string | handler_name | ) |
Remove handler from the listener.
| INVALID-HANDLER-ERROR | handler is not present in the listener's handler list |
|
static |
stop listeners if there are no handlers
| listener | listener to stop |