Hobrasoft httpd server
Embedded HTTP server for Qt and C++
httprequesthandler.h
Go to the documentation of this file.
1 
8 #ifndef _HttpRequestHandler_H_
9 #define _HttpRequestHandler_H_
10 
11 #include <QObject>
12 
13 namespace HobrasoftHttpd {
14 
15 class HttpRequest;
16 class HttpResponse;
17 class HttpConnection;
18 class HttpSettings;
19 
81 class HttpRequestHandler : public QObject {
82  Q_OBJECT
83  public:
84 
89 
97  virtual void service(HttpRequest *request, HttpResponse *response);
98 
111 
112  protected:
116  HttpConnection *connection() const { return m_connection; }
117 
118 
122  const HttpSettings *settings() const;
123 
124  private:
125 
126  #ifndef DOXYGEN_SHOULD_SKIP_THIS
127  HttpConnection *m_connection;
128  #endif
129 };
130 
131 }
132 
133 #endif
HttpResponse * response()
Returns new instance of HttpResponse class.
HttpConnection * connection() const
Returns pointer to parent HttpConnection class.
virtual void service(HttpRequest *request, HttpResponse *response)
Request processing. Should be reimplemented in derived class.
Response to HTTP request - headers, cookies and body.
Definition: httpresponse.h:30
Configuration of the http server instance.
Definition: httpsettings.h:39
Processes incoming requests.
const HttpSettings * settings() const
Returns pointer to HttpSettings used in the HttpServer.
HttpRequestHandler(HttpConnection *parent)
Konstruktor.
Processes HTTP request, parses headers, body and files sent by HTTP protocol.
Definition: httprequest.h:23
Namespace of HTTP server.
One single connection to http server.