tufao
0.8.1
An asynchronous web framework for C++ built on top of Qt
|
This class provides an interface for HttpServerRequest handlers. More...
Public Slots | |
virtual bool | handleRequest (Tufao::HttpServerRequest *request, Tufao::HttpServerResponse *response, const QStringList &args=QStringList())=0 |
Handles the request using the response object. More... | |
Public Member Functions | |
AbstractHttpServerRequestHandler (QObject *parent=0) | |
Constructs an AbstractHttpServerRequestHandler object. | |
This class provides an interface for HttpServerRequest handlers.
A request handler is usually registered to handle requests matching some set of rules and usually used with a set of other handlers.
A sample request handler is given below:
|
pure virtualslot |
Handles the request
using the response
object.
args | A list of options that may be used by the handler. The HttpServerRequestRouter class uses this argument to send the captured texts in the regex pattern. |
true | If the handler has responded to the request. |
false | If the requested page can't be generated by this handler. The connection should remain open and the response object shouldn't be used, leaving the response free to be used by other handlers in the chain. |