Torc  0.1
torchtmlstaticcontent.h
Go to the documentation of this file.
1 #ifndef TORCHTMLSTATICCONTENT_H
2 #define TORCHTMLSTATICCONTENT_H
3 
4 // Torc
5 #include "torchttphandler.h"
6 
7 #define STATIC_DIRECTORY QStringLiteral("/css,/img,/webfonts,/js")
8 
10 {
11  public:
13 
14  void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override;
15 
16  protected:
17  static void GetJavascriptConfiguration (TorcHTTPRequest &Request);
18 
19  private:
20  QString m_pathToContent;
21 };
22 
23 #endif // TORCHTMLSTATICCONTENT_H
A class to encapsulate an incoming HTTP request.
Base HTTP response handler class.
void ProcessHTTPRequest(const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
Handles the provision of static server content such as html, css, js etc.
static void GetJavascriptConfiguration(TorcHTTPRequest &Request)
Construct a Javascript object that encapsulates Torc variables, enumerations and translated strings...