xrtHttpStaticReplyConfigInit
初始化默认 Reply 配置;输出可以未对齐,但必须覆盖完整结构范围。
void xrtHttpStaticReplyConfigInit( xhttpstaticreplyconfig* pConfig );
| 参数 | 说明 |
|---|---|
| xhttpstaticreplyconfig* pConfig | 配置结构 |
返回:初始化默认 Reply 配置;输出可以未对齐,但必须覆盖完整结构范围。
示例已编译验证
httpstaticreplyconfiginit obj; xrtHttpStaticReplyConfigInit(&obj);
xrtHttpStaticServeConfigInit
初始化默认服务配置;输出可以未对齐,但必须覆盖完整结构范围。
void xrtHttpStaticServeConfigInit( xhttpstaticserveconfig* pConfig );
| 参数 | 说明 |
|---|---|
| xhttpstaticserveconfig* pConfig | 配置结构 |
返回:初始化默认服务配置;输出可以未对齐,但必须覆盖完整结构范围。
示例已编译验证
httpstaticserveconfiginit obj; xrtHttpStaticServeConfigInit(&obj);
xrtHttpReplyFromStatic
XRT_API xhttpreply* xrtHttpReplyFromStatic( const xhttpstaticresponse* pResponse, xhttpbody* pBody );
;
返回:XRT_API xhttpreply* xrtHttpReplyFromStatic( const xhttpstaticresponse* pResponse, xhttpbody* pBody );
示例已编译验证
/* XRT_API xhttpreply* xrtHttpReplyFromStatic( const xhttpstaticresponse* pResponse, xhttpbody* pBody ); */ result = xrtHttpReplyFromStatic();
xrtHttpReplyStatic
XRT_API xhttpreply* xrtHttpReplyStatic( const xhttpserverrequest* pRequest, xhttpstaticfile* pFile, xstrview ResourcePath, const xhttpstaticreplyconfig* pConfig );
;
返回:XRT_API xhttpreply* xrtHttpReplyStatic( const xhttpserverrequest* pRequest, xhttpstaticfile* pFile, xstrview ResourcePath, const xhttpstaticreplyconfig* pConfig );
示例已编译验证
/* XRT_API xhttpreply* xrtHttpReplyStatic( const xhttpserverrequest* pRequest, xhttpstaticfile* pFile, xstrview ResourcePath, const xhttpstaticreplyconfig* pConfig ); */ result = xrtHttpReplyStatic();
xrtHttpReplyStaticFuture
XRT_API xfuture* xrtHttpReplyStaticFuture( xtaskpool* pPool, xroot Root, const xhttpserverrequest* pRequest, const xhttpstaticserveconfig* pConfig );
;
返回:XRT_API xfuture* xrtHttpReplyStaticFuture( xtaskpool* pPool, xroot Root, const xhttpserverrequest* pRequest, const xhttpstaticserveconfig* pConfig );
示例已编译验证
/* XRT_API xfuture* xrtHttpReplyStaticFuture( xtaskpool* pPool, xroot Root, const xhttpserverrequest* pRequest, const xhttpstaticserveconfig* pConfig ); */ result = xrtHttpReplyStaticFuture();
xrtHttpConnStatic
XRT_API bool xrtHttpConnStatic( xhttpconn* pConnection, xtaskpool* pPool, xroot Root, const xhttpstaticserveconfig* pConfig );
;
返回:XRT_API bool xrtHttpConnStatic( xhttpconn* pConnection, xtaskpool* pPool, xroot Root, const xhttpstaticserveconfig* pConfig );
示例已编译验证
/* XRT_API bool xrtHttpConnStatic( xhttpconn* pConnection, xtaskpool* pPool, xroot Root, const xhttpstaticserveconfig* pConfig ); */ result = xrtHttpConnStatic();