|
fastdo
0.6.16
|
HTTP响应输出管理器 更多...
#include <http_HttpRspOutputMgr.hpp>


Public 成员函数 | |
| HttpRspOutputMgr (eiennet::Socket *clientSock) | |
| virtual void | commit () override |
| 提交输出 更多... | |
Public 成员函数 继承自 http::RspOutputMgr | |
| RspOutputMgr () | |
| 构造函数 更多... | |
| virtual | ~RspOutputMgr () |
| 析构函数 更多... | |
| void | setLocalEncoding (winux::String const &local) |
指定本地编码(Response会自动设置本地编码) 更多... | |
| void | setTargetEncoding (winux::String const &target) |
指定目标编码(Response不会自动设置) 更多... | |
| winux::String | getLocalEncoding () const |
| 获取本地编码 更多... | |
| winux::String | getTargetEncoding () const |
| 获取目标编码 更多... | |
| winux::String | convFrom (winux::String const &str) const |
| 目标编码转到本地编码 更多... | |
| winux::String | convTo (winux::String const &str) const |
| 本地编码转到目标编码 更多... | |
| http::Header & | header () |
| 暴露管理的头部对象 更多... | |
| http::Header const & | header () const |
| 暴露管理的头部对象 更多... | |
| void | echo (winux::String const &str) |
| 输出字符串 更多... | |
| void | write (void const *data, size_t size) |
| 输出二进制数据 更多... | |
| void | printf (char const *format, va_list va) |
| 输出格式化字符串 更多... | |
| std::ostream & | out () |
| 输出流 更多... | |
| size_t | getOutputSize () const |
| 输出了多少字节数据(缓冲区内存在数据的大小) 更多... | |
| size_t | getConvertedOutputSize () |
| 转码后输出了多少字节数据(如果不用转码则返回缓冲区内存在数据的大小;如果需转码则触发转码返回转码后的数据大小) 更多... | |
| virtual void | resumeStd () |
| 恢复标准流 更多... | |
| virtual void | redirectToSpec () |
| 重定向标准流到特定流 更多... | |
Protected 成员函数 | |
| virtual void | _actualOutput (void const *data, size_t size) override |
| 实际输出 更多... | |
Protected 成员函数 继承自 http::RspOutputMgr | |
| bool | _isNeedEncodingConvert () const |
| 是否需要进行编码转换 更多... | |
| int | _tryEncodingConvert () |
| 尝试编码转换 更多... | |
| virtual void | _actualError (void const *data, size_t size) |
| 实际错误输出 更多... | |
额外继承的成员函数 | |
Protected 属性 继承自 http::RspOutputMgr | |
| http::Header | _header |
| HTTP头部信息 更多... | |
| bool | _headerCommited |
| 指示头部是否已经提交发送到输出流 更多... | |
| winux::String | _localEncoding |
| 本地编码 更多... | |
| winux::String | _targetEncoding |
| 要输出的编码 更多... | |
| winux::AnsiString | _bufConverted |
| 已经进行编码转换的内容 更多... | |
| std::ostream | _out |
| 输出流 更多... | |
| std::streambuf * | _coutOriginStreamBuf |
| 保存原始的标准输出流缓冲区 更多... | |
| std::streamsize | _cacheOutStreamBufConvertedSize |
| 已经完成编码转换的缓冲区数据大小,这个用来判断是否还需要转码 更多... | |
| winux::PlainMembers< struct RspOutputMgr_Data, 88 > | _self |
HTTP响应输出管理器
在文件 http_HttpRspOutputMgr.hpp 第 7 行定义.
| http::HttpRspOutputMgr::HttpRspOutputMgr | ( | eiennet::Socket * | clientSock | ) |
|
overridevirtual |
|
overrideprotectedvirtual |
实际输出
重载 http::RspOutputMgr .