19 m_connection = parent;
24 QString path = request->
path();
25 m_connection->setObjectName(path);
27 if (path.endsWith(
".shtml")) {
37 return m_connection->response();
const HttpSettings * settings() const
Returns pointer to settings used in the class.
void service(HttpRequest *request, HttpResponse *response)
Processes one request.
HttpResponse * response()
Returns new instance of HttpResponse class.
QString path() const
Returns path of the request (/files/index.html)
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.
void service(HttpRequest *request, HttpResponse *response)
Processes the request.
Configuration of the http server instance.
const HttpSettings * settings() const
Returns pointer to HttpSettings used in the HttpServer.
HttpRequestHandler(HttpConnection *parent)
Konstruktor.
Processes request to SHTML files.
Processes HTTP request, parses headers, body and files sent by HTTP protocol.
Processes request for static files.
Namespace of HTTP server.
One single connection to http server.