Pol  Revision:4b29d2b
httpmod.h
Go to the documentation of this file.
1 
7 #ifndef __HTTPMOD_H
8 #define __HTTPMOD_H
9 
10 #include <string>
11 
12 #include "../../bscript/execmodl.h"
13 #include "../../clib/wnsckt.h"
14 
15 namespace Pol
16 {
17 namespace Bscript
18 {
19 class BObjectImp;
20 class Executor;
21 } // namespace Bscript
22 } // namespace Pol
23 
24 namespace Pol
25 {
26 namespace Core
27 {
28 class UOExecutor;
29 }
30 namespace Module
31 {
32 class HttpExecutorModule : public Bscript::TmplExecutorModule<HttpExecutorModule>
33 {
34 public:
36 
37  Bscript::BObjectImp* mf_WriteHtml();
38  Bscript::BObjectImp* mf_WriteHtmlRaw();
39  Bscript::BObjectImp* mf_QueryParam();
40  Bscript::BObjectImp* mf_QueryIP();
41 
42  void read_query_string( const std::string& query_string );
43  void read_query_ip();
44 
45  // TODO: clean up the socket ownership thing so these can be private again
46 public:
48  typedef std::map<std::string, std::string, Clib::ci_cmp_pred> QueryParamMap;
49  QueryParamMap params_;
52  std::string query_ip_;
53 };
54 }
55 }
56 #endif // HTTPMOD_H
Core::UOExecutor & uoexec
Definition: httpmod.h:51
std::map< std::string, std::string, Clib::ci_cmp_pred > QueryParamMap
Definition: httpmod.h:48
Definition: berror.cpp:12