Implements listeners for the HttpServer class.
More...
#include <HttpServer.qm.dox.h>
|
|
hash< auto > | getContextTemplate (hash< auto > info) |
| | Returns the context template for new connections.
|
| |
|
|
bool | get_remote_certs = False |
| | get remote certificates
|
| |
|
int | lock_waiting |
| | thread waiting on lock
|
| |
|
*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
|
| |
Implements listeners for the HttpServer class.
◆ constructor()
Creates the object with the given parameters.
- Parameters
-
| server | the HTTP server |
| id | the listener ID |
| ss | the listener connection sequence |
| opts | listener options |
◆ reloadCertificate()
| 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
- Exceptions
-
| REFRESH-CERTIFICATE-ERROR | not an HTTPS listener or certificate location information not present |
- Since
- HttpServer 1.1
◆ removeHandler() [1/2]
Remove handler from the listener.
- Exceptions
-
| INVALID-HANDLER-ERROR | handler is not present in the listener's handler list |
◆ removeHandler() [2/2]
| HttpServer::HttpListener::removeHandler |
( |
string |
handler_name | ) |
|
Remove handler from the listener.
- Exceptions
-
| INVALID-HANDLER-ERROR | handler is not present in the listener's handler list |
◆ stopIfNoHandlers()
stop listeners if there are no handlers
- Parameters
-
- Returns
- whether listener was stopped