23 #ifndef TUFAO_ABSTRACTHTTPUPGRADEHANDLER_H
24 #define TUFAO_ABSTRACTHTTPUPGRADEHANDLER_H
27 #include <QtNetwork/QAbstractSocket>
28 #include "httpserverrequest.h"
62 operator std::function<bool(HttpServerRequest&, const QByteArray&)>();
78 operator std::function<void(HttpServerRequest&, const QByteArray&)>();
96 const QByteArray &head) = 0;
99 inline AbstractHttpUpgradeHandler::operator
100 std::function<bool(HttpServerRequest&, const QByteArray&)>()
103 return this->handleUpgrade(req, head);
107 inline AbstractHttpUpgradeHandler::operator
108 std::function<void(HttpServerRequest&, const QByteArray&)>()
111 if (!this->handleUpgrade(req, head))
118 #endif // TUFAO_ABSTRACTHTTPUPGRADEHANDLER_H
The Tufao::HttpServer represents a HTTP request received by Tufao::HttpServer.
Definition: httpserverrequest.h:54
This is the namespace where all Tufão facilities are grouped.
Definition: abstracthttpserverrequesthandler.h:30
QAbstractSocket & socket() const
The QAbstractSocket object associated with the connection.
This class provides an interface for HTTP Upgrade handlers.
Definition: abstracthttpupgradehandler.h:47