Cleanup of server-constructors. Previous constructors have been marked as deprecated.
This commit is contained in:
parent
30ef094b02
commit
6c3a59d9ba
6 changed files with 58 additions and 30 deletions
|
|
@ -28,7 +28,8 @@ int main() {
|
|||
//HTTPS-server at port 8080 using 1 thread
|
||||
//Unless you do more heavy non-threaded processing in the resources,
|
||||
//1 thread is usually faster than several threads
|
||||
HttpsServer server(8080, 1, "server.crt", "server.key");
|
||||
HttpsServer server("server.crt", "server.key");
|
||||
server.config.port=8080;
|
||||
|
||||
//Add resources using path-regex and method-string, and an anonymous function
|
||||
//POST-example for the path /string, responds the posted string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue