| 
    fastdo
    0.5.12
    
   | 
 
代表客户请求 更多...
#include <fcgiplus.hpp>

Public 成员函数 | |
| Request () | |
| ~Request () | |
| void | init (FcgiApp *app, int sock, int flags) | 
| 初始化FCGX_Request  更多... | |
| void | free (bool close=false) | 
| 释放FCGX_Request, close表示是否关闭与FCGX_Request关联的ipcFd  更多... | |
| void | finish () | 
| 完成这次请求,清空缓冲区  更多... | |
| bool | accept () | 
| 等待接收请求,成功返回true,否则返回false。阻塞式  更多... | |
| bool | processData () | 
| 处理environVars/get/post/cookies数据  更多... | |
| winux::String const & | operator[] (winux::String const &name) const | 
| 获取环境变量  更多... | |
| void | dumpEnvTo (winux::String *str, char **envp=NULL) const | 
| 输出全部环境变量到String  更多... | |
Public 属性 | |
| winux::StringStringMap | environVars | 
| 环境变量  更多... | |
| http::Cookies | cookies | 
| Cookie变量 read/write.  更多... | |
| http::Vars | get | 
| GET变量 readonly.  更多... | |
| http::Vars | post | 
| POST变量 readonly.  更多... | |
| FcgiApp * | fcgiApp | 
| FcgiApp对象指针  更多... | |
友元 | |
| class | Response | 
| class | FcgiApp | 
代表客户请求
在文件 fcgiplus.hpp 第 137 行定义.
| fcgi::Request::Request | ( | ) | 
| fcgi::Request::~Request | ( | ) | 
| bool fcgi::Request::accept | ( | ) | 
等待接收请求,成功返回true,否则返回false。阻塞式
若接收请求成功,会解析加载相关变量,如Cookies,Get,Post变量。
| void fcgi::Request::dumpEnvTo | ( | winux::String * | str, | 
| char ** | envp = NULL  | 
        ||
| ) | const | 
输出全部环境变量到String
如果envp为NULL,则输出FCGX_Request的环境变量
| void fcgi::Request::finish | ( | ) | 
完成这次请求,清空缓冲区
FCGX_Finish_r()内部也会调用FCGX_Free()
| void fcgi::Request::free | ( | bool | close = false | ) | 
释放FCGX_Request, close表示是否关闭与FCGX_Request关联的ipcFd
| void fcgi::Request::init | ( | FcgiApp * | app, | 
| int | sock, | ||
| int | flags | ||
| ) | 
初始化FCGX_Request
| winux::String const& fcgi::Request::operator[] | ( | winux::String const & | name | ) | const | 
获取环境变量
| bool fcgi::Request::processData | ( | ) | 
处理environVars/get/post/cookies数据
      
  | 
  friend | 
在文件 fcgiplus.hpp 第 184 行定义.
      
  | 
  friend | 
在文件 fcgiplus.hpp 第 183 行定义.
| http::Cookies fcgi::Request::cookies | 
Cookie变量 read/write.
在文件 fcgiplus.hpp 第 175 行定义.
| winux::StringStringMap fcgi::Request::environVars | 
环境变量
在文件 fcgiplus.hpp 第 173 行定义.
| FcgiApp* fcgi::Request::fcgiApp | 
FcgiApp对象指针
在文件 fcgiplus.hpp 第 181 行定义.
| http::Vars fcgi::Request::get | 
GET变量 readonly.
在文件 fcgiplus.hpp 第 177 行定义.
| http::Vars fcgi::Request::post | 
POST变量 readonly.
在文件 fcgiplus.hpp 第 179 行定义.