1 #ifndef TORCHTTPHANDLER_H 2 #define TORCHTTPHANDLER_H 21 QString
Name (
void)
const;
23 virtual QVariantMap
ProcessRequest (
const QString &Method,
const QVariant &Parameters, QObject *Connection,
bool Authenticated);
39 #endif // TORCHTTPHANDLER_H
virtual QVariantMap ProcessRequest(const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated)
A class to encapsulate an incoming HTTP request.
Base HTTP response handler class.
QString Signature(void) const
virtual void ProcessHTTPRequest(const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request)=0
bool GetRecursive(void) const
static void HandleOptions(TorcHTTPRequest &Request, int Allowed)
TorcHTTPHandler(const QString &Signature, const QString &Name)
static void HandleFile(TorcHTTPRequest &Request, const QString &Filename, int Cache)
static bool MethodIsAuthorised(TorcHTTPRequest &Request, int Allowed)
Check the current request is authorised and set the authentication header if not. ...
virtual ~TorcHTTPHandler()