|
tufao
1.3.0
An asynchronous web framework for C++ built on top of Qt
|
This class provides an interface for HTTP Upgrade handlers. More...
Inheritance diagram for Tufao::AbstractHttpUpgradeHandler:
Collaboration diagram for Tufao::AbstractHttpUpgradeHandler:Public Member Functions | |
| operator std::function< bool (HttpServerRequest &, const QByteArray &)>() | |
| Implicit conversion operator to std::function functor object. More... | |
| operator std::function< void (HttpServerRequest &, const QByteArray &)>() | |
| Implicit conversion operator to std::function functor object. More... | |
| virtual bool | handleUpgrade (Tufao::HttpServerRequest &request, const QByteArray &head)=0 |
Handles the HTTP request. More... | |
This class provides an interface for HTTP Upgrade handlers.
An upgrade handler is usually registered to handle requests matching some set of rules and usually used with a set of other handlers.
A sample upgrade handler is given below:
|
pure virtual |
Handles the HTTP request.
| true | If the handler has upgraded the connection to the request protocol. |
| false | If the handler didn't change the protocol to the requested one. The HTTP session should remain open (eg. a response message shouldn't be sent), leaving the response free to be used by other handlers in the chain. |
|
inline |
Implicit conversion operator to std::function functor object.
|
inline |
Implicit conversion operator to std::function functor object.