The CppWebServer class is a HTTP server, responsable to receive and dispatch the requisitions.
More...
#include <cppwebserver.h>
The CppWebServer class is a HTTP server, responsable to receive and dispatch the requisitions.
◆ CppWebServer()
| CWF_BEGIN_NAMESPACE CppWebServer::CppWebServer |
( |
const Configuration & |
configuration, |
|
|
Filter * |
filter = nullptr |
|
) |
| |
|
explicit |
Load SSL configuration, configure the thread pool and the filter.
- Parameters
-
| Filter | *filter : Install a filter for requests on the server. Optional. |
◆ addController()
template<typename CONTROLLER >
| void CppWebServer::addController |
( |
const QString & |
url | ) |
|
|
inlinenoexcept |
Hitches a url to a Controller.
- Parameters
-
| const | QString &url : Url name. it will not be possible to map the controllers through the addController function, instead everything should be handled inside the Filter. |
◆ incomingConnection()
| void CppWebServer::incomingConnection |
( |
qintptr |
socketfd | ) |
|
|
overrideprotected |
incomingConnection
- Parameters
-
| qintptr | socketfd : Socket descriptor. |
The documentation for this class was generated from the following files:
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/cppwebserver.h
- /home/herik/CPPWebFramework/CPPWebFramework/cwf/cppwebserver.cpp