fastdo  0.5.12
fcgi::Request类 参考

代表客户请求 更多...

#include <fcgiplus.hpp>

fcgi::Request 的协作图:

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. 更多...
 
FcgiAppfcgiApp
 FcgiApp对象指针 更多...
 

友元

class Response
 
class FcgiApp
 

详细描述

代表客户请求

在文件 fcgiplus.hpp137 行定义.

构造及析构函数说明

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 class FcgiApp
friend

在文件 fcgiplus.hpp184 行定义.

friend class Response
friend

在文件 fcgiplus.hpp183 行定义.

类成员变量说明

http::Cookies fcgi::Request::cookies

Cookie变量 read/write.

在文件 fcgiplus.hpp175 行定义.

winux::StringStringMap fcgi::Request::environVars

环境变量

在文件 fcgiplus.hpp173 行定义.

FcgiApp* fcgi::Request::fcgiApp

FcgiApp对象指针

在文件 fcgiplus.hpp181 行定义.

http::Vars fcgi::Request::get

GET变量 readonly.

在文件 fcgiplus.hpp177 行定义.

http::Vars fcgi::Request::post

POST变量 readonly.

在文件 fcgiplus.hpp179 行定义.


该类的文档由以下文件生成: