fastdo  0.6.8
webx_Request.hpp
浏览该文件的文档.
1 #pragma once
2 
3 #include "http.hpp"
4 
5 namespace eienwebx
6 {
7 
8 class App;
9 
12 {
13 public:
14  Request( App * app );
15 
16  virtual ~Request();
17 
19  virtual bool processData( void * data );
20 
22  winux::String dumpEnv() const;
23 
25  winux::String const & operator [] ( winux::String const & name ) const;
26 
28  template < typename _AppClass >
29  _AppClass * getApp() const { return static_cast<_AppClass*>(app); }
30 
43 
45  App * app;
46 
51 
54  {
55  return winux::RealPathEx( path, this->doDirPath );
56  }
57 private:
59  winux::StringArray _importDoPaths;
60 
61  friend class App;
62 
64 };
65 
66 
67 } // namespace eienwebx
XString< char > AnsiString
Definition: utilities.hpp:212
代表HTTP头部
Definition: http_misc.hpp:10
#define EIENWEBX_DLL
_AppClass * getApp() const
返回指定类型的App对象指针
XString< tchar > String
Definition: utilities.hpp:216
Web功能的相关封装
std::map< String, String > StringStringMap
Definition: utilities.hpp:229
http::Vars post
POST变量 readonly.
#define DISABLE_OBJECT_COPY(clsname)
Definition: utilities.hpp:81
App * app
App对象指针
解析和设置get/post变量
Definition: http_misc.hpp:286
App类,内部有Do文件载入/执行功能
Definition: webx_App.hpp:13
winux::String realPath(winux::String const &path)
根据当前do文件目录路径计算绝对路径
String RealPathEx(String const &path, String const &workDirAbsPath)
根据指定工作目录计算绝对路径,不会检查存在性
winux::String doDirPath
当前do文件目录路径
winux::AnsiString body
请求体
http::Cookies cookies
Cookie变量 read/write.
代表一个请求
winux::String doFullPath
当前do文件全路径
winux::StringStringMap environVars
环境变量
http::Header header
请求头
提供操作Cookies相关的功能
Definition: http_misc.hpp:233
XStringArray< tchar > StringArray
Definition: utilities.hpp:227