JETServer
/home/bradarant/barant/HTTPServer/__style.h
1 #ifndef ____style_h__
2 #define ____style_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __style : public HTTPPage {
9 
10  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
11 
12  data << "body {background: #006;" << std::endl;
13  data << " color: #fff;" << std::endl;
14  data << " }" << std::endl;
15 
16  data << ".window {background: #668;" << std::endl;
17  data << " color: #fff;" << std::endl;
18  data << " border: 1pt solid #f00;" << std::endl;
19  data << " width: 400px;" << std::endl;
20  data << " padding: 15px;" << std::endl;
21  data << " }" << std::endl;
22 
23  httpRequest.response.addHeader("Content-Type", "text/css");
24  return true;
25  }
26  };
27 }
28 
29 #endif
Definition: HTTPSession.h:9
Definition: __configure.h:4
Definition: __style.h:8
Definition: HTTPPage.h:11
Definition: HTTPRequest.h:11