xrtHttpBodyDecodeConfigInit
初始化通用 Inflate 默认值和四层内容编码上限。
void xrtHttpBodyDecodeConfigInit( xhttpbodydecodeconfig* pConfig );
| 参数 | 说明 |
|---|---|
| xhttpbodydecodeconfig* pConfig | 配置结构 |
返回:初始化通用 Inflate 默认值和四层内容编码上限。
示例已编译验证
httpbodydecodeconfiginit obj; xrtHttpBodyDecodeConfigInit(&obj);
xrtHttpBodyDecodeFields
XRT_API xhttpbodydecoderesult xrtHttpBodyDecodeFields( xhttpbody* pSource, const xhttpfield* pFields, size_t iCount, const xhttpbodydecodeconfig* pConfig, xhttpbody** ppOutput );
;
返回:XRT_API xhttpbodydecoderesult xrtHttpBodyDecodeFields( xhttpbody* pSource, const xhttpfield* pFields, size_t iCount, const xhttpbodydecodeconfig* pConfig, xhttpbody** ppOutput );
示例已编译验证
/* XRT_API xhttpbodydecoderesult xrtHttpBodyDecodeFields( xhttpbody* pSource, const xhttpfield* pFields, size_t iCount, const xhttpbodydecodeconfig* pConfig, xhttpbody** ppOutput ); */ result = xrtHttpBodyDecodeFields();
xrtHttpBodyDecode
解码单个 Content-Encoding 字段值的常用便利路径。
xhttpbodydecoderesult xrtHttpBodyDecode( xhttpbody* pSource, xstrview ContentEncoding, const xhttpbodydecodeconfig* pConfig, xhttpbody** ppOutput );
| 参数 | 说明 |
|---|---|
| xhttpbody* pSource | 来源 |
| xstrview ContentEncoding | 内容编码 |
| const xhttpbodydecodeconfig* pConfig | 配置结构 |
| xhttpbody** ppOutput | 出:输出缓冲 |
返回:解码单个 Content-Encoding 字段值的常用便利路径。
示例已编译验证
/* 解码单个 Content-Encoding 字段值的常用便利路径。 */ result = xrtHttpBodyDecode(pSource, ContentEncoding, pConfig, ppOutput);