#include <h2_server.hpp>
|
| | h2_server (const char *certKeyFile, const char *certFile) |
| |
| void | run (const char *port) |
| |
◆ h2_server()
| h2_server::h2_server |
( |
const char * |
certKeyFile, |
|
|
const char * |
certFile |
|
) |
| |
Initiates a h2_server object
- Parameters
-
| certKeyFile | - path to .pem key file |
| certFile | - path to .pem certificate file |
◆ addRoute()
| void h2_server::addRoute |
( |
string |
path, |
|
|
string |
filepath |
|
) |
| |
|
static |
Add a route for a file to be served on
- Parameters
-
| appCtx | - ApplicationContext for whole server |
| path | - route to serve |
| filepath | - path of the file to serve, in publicDir |
◆ enableCommentsPrint()
| void h2_server::enableCommentsPrint |
( |
bool |
enable | ) |
|
|
static |
Turn on/off comment prints
- Parameters
-
| enable | - bool true enables, false disables |
◆ enableFramesPrint()
| void h2_server::enableFramesPrint |
( |
bool |
enable | ) |
|
|
static |
Turn on/off frames prints
- Parameters
-
| enable | - bool true enables, false disables |
◆ enableTrackersPrint()
| void h2_server::enableTrackersPrint |
( |
bool |
enable | ) |
|
|
static |
Turn on/off trackers prints
- Parameters
-
| enable | - bool true enables, false disables |
◆ run()
| void h2_server::run |
( |
const char * |
port | ) |
|
Runs the server on provided port
- Parameters
-
| port | - port to run server on |
◆ setPublicDir()
| void h2_server::setPublicDir |
( |
string |
dir | ) |
|
|
static |
Set the path to be used as public directory on the server
- Parameters
-
| dir | - string with the path |
The documentation for this class was generated from the following files: