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);