QtWebApp
httprequesthandler.h
Go to the documentation of this file.
1 
6 #ifndef HTTPREQUESTHANDLER_H
7 #define HTTPREQUESTHANDLER_H
8 
9 #include "httpglobal.h"
10 #include "httprequest.h"
11 #include "httpresponse.h"
12 
13 namespace stefanfrings {
14 
27 class DECLSPEC HttpRequestHandler : public QObject {
28  Q_OBJECT
29  Q_DISABLE_COPY(HttpRequestHandler)
30 public:
31 
36  HttpRequestHandler(QObject* parent=nullptr);
37 
39  virtual ~HttpRequestHandler();
40 
47  virtual void service(HttpRequest& request, HttpResponse& response);
48 
49 };
50 
51 } // end of namespace
52 
53 #endif // HTTPREQUESTHANDLER_H
The request handler generates a response for each HTTP request.
This object represents a single HTTP request.
Definition: httprequest.h:37
This object represents a HTTP response, used to return something to the web client.
Definition: httpresponse.h:36