7 #ifndef _Httpd_AbstractController_H_ 8 #define _Httpd_AbstractController_H_ 13 #include <QVariantMap> 17 class HttpRequestHandler;
152 virtual bool exists(
const QString&
id)
const { Q_UNUSED(
id);
return true; }
248 #ifndef DOXYGEN_SHOULD_SKIP_THIS virtual void serviceOK(HobrasoftHttpd::HttpRequest *request, HobrasoftHttpd::HttpResponse *response, const QVariant &data=QVariant())
Sends 200 OK response.
AbstractController(HobrasoftHttpd::HttpConnection *parent)
Constructor.
HttpResponse * response()
Returns new instance of HttpResponse class.
bool checkId() const
Returns the state of checkId.
HttpConnection * connection() const
Returns pointer to parent HttpConnection class.
Abstract class for processing unified HTTP requests to server's API.
virtual void service(HobrasoftHttpd::HttpRequest *request, HobrasoftHttpd::HttpResponse *response)
Request processing.
virtual bool exists(const QString &id) const
Check existence of th ID.
Response to HTTP request - headers, cookies and body.
Processes incoming requests.
Processes HTTP request, parses headers, body and files sent by HTTP protocol.
void setCheckId(bool x)
If the checkId is set then the exixtence of the item is checked in requests PUT and POST...
Own implementation of HTTP server.
Namespace of HTTP server.
One single connection to http server.