|
fastdo
0.6.16
|
FCGI请求 更多...
#include <webx_FcgiRequest.hpp>


Public 成员函数 | |
| FcgiRequest (FcgiApp *fcgiApp) | |
| virtual | ~FcgiRequest () |
| int | init (int sock, int flags) |
| 初始化FCGX_Request 更多... | |
| void | free (bool close=true) |
| 释放FCGX_Request, close表示是否关闭与FCGX_Request关联的ipcFd.(即从listen_sock接受到的fd) 更多... | |
| void | finish () |
| 完成这次请求,清空缓冲区 更多... | |
| bool | accept () |
| 等待接收请求,成功返回true,否则返回false。阻塞式 更多... | |
| virtual bool | processData (http::UrlPathPartData *urlData) override |
| 每次请求时处理environVars/get/post/cookies数据 更多... | |
| virtual void | cleanup () override |
| 每次请求后清理一些数据 更多... | |
Public 成员函数 继承自 eienwebx::Request | |
| Request (App *app) | |
| virtual winux::String | dumpEnv () const override |
| 倾泻出全部请求环境变量 更多... | |
| template<typename _AppClass > | |
| _AppClass * | getApp () const |
| 返回指定类型的App对象指针 更多... | |
| winux::String | realPath (winux::String const &path) |
| 根据当前do文件目录路径计算绝对路径 更多... | |
Public 成员函数 继承自 http::Request | |
| Request () | |
| virtual | ~Request () |
| winux::String const & | operator[] (winux::String const &name) const |
| 获取环境变量 更多... | |
Public 属性 | |
| winux::PlainMembers< struct FcgiRequest_Data, 80 > | _self |
Public 属性 继承自 eienwebx::Request | |
| App * | app |
| App对象指针 更多... | |
| winux::String | doFullPath |
| 当前do文件全路径 更多... | |
| winux::String | doDirPath |
| 当前do文件目录路径 更多... | |
Public 属性 继承自 http::Request | |
| http::Header | header |
| 请求头 更多... | |
| winux::AnsiString | body |
| 请求体 更多... | |
| winux::StringStringMap | environVars |
| 环境变量 更多... | |
| http::Cookies | cookies |
| Cookie变量 read/write. 更多... | |
| http::Vars | get |
| GET变量 readonly. 更多... | |
| http::Vars | post |
| POST变量 readonly. 更多... | |
Protected 属性 | |
| winux::StringArray | _arrUploadTmpFiles |
Protected 属性 继承自 eienwebx::Request | |
| winux::StringArray | _importDoPaths |
| 防止一个请求内App::importDoFile()无穷递归导入 更多... | |
FCGI请求
在文件 webx_FcgiRequest.hpp 第 6 行定义.
| eienwebx::FcgiRequest::FcgiRequest | ( | FcgiApp * | fcgiApp | ) |
|
virtual |
| int eienwebx::FcgiRequest::init | ( | int | sock, |
| int | flags | ||
| ) |
初始化FCGX_Request
| void eienwebx::FcgiRequest::free | ( | bool | close = true | ) |
释放FCGX_Request, close表示是否关闭与FCGX_Request关联的ipcFd.(即从listen_sock接受到的fd)
执行FCGX_Free()
| void eienwebx::FcgiRequest::finish | ( | ) |
完成这次请求,清空缓冲区
FCGX_Finish_r()内部也会调用FCGX_Free()
| bool eienwebx::FcgiRequest::accept | ( | ) |
等待接收请求,成功返回true,否则返回false。阻塞式
|
overridevirtual |
每次请求时处理environVars/get/post/cookies数据
重载 http::Request .
|
overridevirtual |
每次请求后清理一些数据
重载 http::Request .
| winux::PlainMembers<struct FcgiRequest_Data, 80> eienwebx::FcgiRequest::_self |
在文件 webx_FcgiRequest.hpp 第 34 行定义.
|
protected |
在文件 webx_FcgiRequest.hpp 第 37 行定义.