Stellarium 0.15.2
|
The request handler generates a response for each HTTP request. More...
#include <httprequesthandler.h>
Public Member Functions | |
HttpRequestHandler (QObject *parent=NULL) | |
Constructor. More... | |
virtual | ~HttpRequestHandler () |
Destructor. More... | |
virtual void | service (HttpRequest &request, HttpResponse &response) |
Generate a response for an incoming HTTP request. More... | |
The request handler generates a response for each HTTP request.
Web Applications usually have one central request handler that maps incoming requests to several controllers (servlets) based on the requested path.
You need to override the service() method or you will always get an HTTP error 501.
Definition at line 26 of file httprequesthandler.h.
HttpRequestHandler::HttpRequestHandler | ( | QObject * | parent = NULL | ) |
Constructor.
parent | Parent object. |
|
virtual |
Destructor.
|
virtual |
Generate a response for an incoming HTTP request.
request | The received HTTP request |
response | Must be used to return the response |
Reimplemented in StaticFileController, RequestHandler, and APIController.