| fastdo
    0.6.16
    | 
代表一个客户响应 更多...
#include <webx_Response.hpp>


| Public 成员函数 | |
| Response (Request &req, winux::SimplePointer< http::RspOutputMgr > outputMgr) | |
| 构造函数  更多... | |
| void | import (winux::String const &doFile, void *runParam=NULL, int *retCode=NULL) | 
| import一个do文件,并把它的输出作为自己的输出,若错误则显示错误  更多... | |
|  Public 成员函数 继承自 http::Response | |
| Response (Request &req, winux::SimplePointer< RspOutputMgr > outputMgr) | |
| 构造函数  更多... | |
| virtual | ~Response () | 
| 析构函数  更多... | |
| void | echo (winux::String const &str) | 
| 输出字符串  更多... | |
| void | write (void const *data, int size) | 
| 输出二进制数据  更多... | |
| void | write (winux::Buffer const &buf) | 
| 输出二进制数据  更多... | |
| void | printf (char const *format,...) | 
| 输出格式化字符串  更多... | |
| void | commitHeader () | 
| 提交一些自动的响应头到输出管理器  更多... | |
| void | commit () | 
| 使输出管理器实际输出响应(包括头部和响应数据)  更多... | |
| winux::String | getLocalEncoding () const | 
| 获取本地编码  更多... | |
| winux::String | getTargetEncoding () const | 
| 获取目标编码  更多... | |
| winux::String | convFrom (winux::String const &str) const | 
| 目标编码转到本地编码  更多... | |
| winux::String | convTo (winux::String const &str) const | 
| 本地编码转到目标编码  更多... | |
| void | setCharset (winux::String const &charset) | 
| 设置charset,即设置输出目标编码  更多... | |
| winux::String | getCharset () const | 
| 获取charset,即输出目标编码  更多... | |
| void | setMimeType (winux::String const &mime) | 
| 设置MIME  更多... | |
| winux::String | getMimeType () const | 
| 获取MIME  更多... | |
| void | setAutoContentType (bool autoContentType=true) | 
| 是否自动设置 Content-Type更多... | |
| template<typename _Ty > | |
| std::ostream & | operator<< (_Ty const &v) | 
| 使 Response能用operator <<输出内容  更多... | |
| RspOutputMgr * | getOutputMgr () const | 
| 暴露输出管理器  更多... | |
| Public 属性 | |
| Request & | request | 
| eienwebx::Request对象的引用  更多... | |
|  Public 属性 继承自 http::Response | |
| Request & | request | 
| http::Request对象的引用  更多... | |
| http::Header & | header | 
| 响应头部的引用  更多... | |
代表一个客户响应
在文件 webx_Response.hpp 第 9 行定义.
| eienwebx::Response::Response | ( | Request & | req, | 
| winux::SimplePointer< http::RspOutputMgr > | outputMgr | ||
| ) | 
构造函数
| [in] | req | 请求对象 | 
| [in] | outputMgr | 输出管理器 | 
| void eienwebx::Response::import | ( | winux::String const & | doFile, | 
| void * | runParam = NULL, | ||
| int * | retCode = NULL | ||
| ) | 
import一个do文件,并把它的输出作为自己的输出,若错误则显示错误
| doFile | 文件路径 | 
| runParam | 应传入 WebMain()传来的runParam,如果是NULL,则应从App::getRunParam()取得 | 
| retCode | 表示导入do的WebMain()返回代码,为NULL则忽略此值 | 
| Request& eienwebx::Response::request | 
eienwebx::Request对象的引用 
在文件 webx_Response.hpp 第 25 行定义.