![]() |
C++ Web Framework
3.0
|
The Controller class is responsable to attend a request from a specific url. You will need to create a derived class from Controller and then, reconstruct the desired method to response a request, after this, you will need mapping the url to the new controller that you created, you need to do it into the ConfigureCppWebServer using the method addUrlController. More...
#include <controller.h>

Public Member Functions | |
| virtual | ~Controller () |
| Destructor. | |
| virtual void | doDelete (Request &req, Response &resp) const |
| This is an virtual method that can be overloaded to attend the delete request method. More... | |
| virtual void | doGet (Request &req, Response &resp) const |
| This is an virtual method that can be overloaded to attend the get request method. More... | |
| virtual void | doOptions (Request &req, Response &resp) const |
| This is an virtual method that can be overloaded to attend the options request method. More... | |
| virtual void | doPost (Request &req, Response &resp) const |
| This is an virtual method that can be overloaded to attend the post request method. More... | |
| virtual void | doPut (Request &req, Response &resp) const |
| This is an virtual method that can be overloaded to attend the put request method. More... | |
| virtual void | doTrace (Request &req, Response &resp) const |
| This is an virtual method that can be overloaded to attend the trace request method. More... | |
The Controller class is responsable to attend a request from a specific url. You will need to create a derived class from Controller and then, reconstruct the desired method to response a request, after this, you will need mapping the url to the new controller that you created, you need to do it into the ConfigureCppWebServer using the method addUrlController.
This is an virtual method that can be overloaded to attend the get request method.
Reimplemented in CppWebController.
1.8.13