tufao
1.3.0
An asynchronous web framework for C++ built on top of Qt
|
This class provides an interface for HttpServerRequest handlers. More...
Public Member Functions | |
operator std::function< bool (HttpServerRequest &, HttpServerResponse &)>() | |
Implicit conversion operator to std::function functor object. More... | |
virtual bool | handleRequest (Tufao::HttpServerRequest &request, Tufao::HttpServerResponse &response)=0 |
Handles the request using the response object. More... | |
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 virtual |
Handles the request
using the response
object.
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. |
|
inline |
Implicit conversion operator to std::function functor object.