tufao  0.8.1
An asynchronous web framework for C++ built on top of Qt
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Tufao::AbstractHttpUpgradeHandler Class Referenceabstract

This class provides an interface for HTTP upgrade handlers. More...

+ Inheritance diagram for Tufao::AbstractHttpUpgradeHandler:
+ Collaboration diagram for Tufao::AbstractHttpUpgradeHandler:

Public Slots

virtual bool handleRequest (Tufao::HttpServerRequest *request, const QByteArray &head, const QStringList &args=QStringList())=0
 Handles the HTTP upgrade request. More...
 

Public Member Functions

 AbstractHttpUpgradeHandler (QObject *parent=0)
 Constructs an AbstractHttpUpgradeHandler object.
 

Detailed Description

This class provides an interface for HTTP upgrade handlers.

See Also
HttpUpgradeRouter
Since
0.6

Member Function Documentation

virtual bool Tufao::AbstractHttpUpgradeHandler::handleRequest ( Tufao::HttpServerRequest request,
const QByteArray &  head,
const QStringList &  args = QStringList() 
)
pure virtualslot

Handles the HTTP upgrade request.

Parameters
argsA list of options that may be used by the handler. The HttpUpgradeRouter class uses this argument to send the captured texts in the regex pattern.
Return values
trueIf the handler wants to manage the connection from now on.
falseIf the url isn't interested in this request and the request should be transfered to somebody else.

The documentation for this class was generated from the following file: