C++ Web Framework  3.0
cppwebcontroller.h
1 /*
2  Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler
3  Distributed under MIT license, or public domain if desired and
4  recognized in your jurisdiction.
5  See file LICENSE for detail.
6 */
7 
8 #ifndef CPPWEBCONTROLLER_H
9 #define CPPWEBCONTROLLER_H
10 
11 #include "controller.h"
12 #include "request.h"
13 #include "response.h"
14 #include "cppwebframework_global.h"
15 
16 CWF_BEGIN_NAMESPACE
20 class CPPWEBFRAMEWORKSHARED_EXPORT CppWebController : public Controller
21 {
22 public:
28  void doGet(Request &request, Response &response) const override;
29 };
30 
31 CWF_END_NAMESPACE
32 
33 #endif // CPPWEBCONTROLLER_H
virtual void doGet(Request &req, Response &resp) const
This is an virtual method that can be overloaded to attend the get request method.
Definition: controller.h:53
The Request class holds all information about a http request.
Definition: request.h:27
The Controller class is responsable to attend a request from a specific url. You will need to create ...
Definition: controller.h:28
The Response class is responsable to response a Http request.
Definition: response.h:25
This class is responsible for displaying the standard pages of C++ Web Framework: index...
Definition: cppwebcontroller.h:20