xrtHttpCacheMethodDefault
判断标准方法是否定义了本模块实现的默认缓存语义。
| 参数 | 说明 |
|---|---|
| xstrview Method | HTTP 方法 |
示例已编译验证
/* 判断标准方法是否定义了本模块实现的默认缓存语义。 */ result = xrtHttpCacheMethodDefault(Method);
xrtHttpCacheStatusHeuristic
判断 RFC 9110 状态是否允许在没有显式寿命时使用启发式新鲜度。
| 参数 | 说明 |
|---|---|
| uint16 iStatus | 状态码 |
示例已编译验证
/* 判断 RFC 9110 状态是否允许在没有显式寿命时使用启发式新鲜度。 */ result = xrtHttpCacheStatusHeuristic(iStatus);
xrtHttpCacheStoreInputInit
XRT_API bool xrtHttpCacheStoreInputInit( xhttpcachestoreinput* pInput, xstrview Method, uint16 iStatus, bool Shared );
示例已编译验证
httpcachestoreinputinit obj; xrtHttpCacheStoreInputInit(&obj);
xrtHttpCacheStorePlan
XRT_API xhttpcachestoredecision xrtHttpCacheStorePlan( const xhttpcachecontrol* pRequest, const xhttpcachecontrol* pResponse, const xhttpcachetime* pTime, const xhttpcachestoreinput* pInput, xhttpcachestoreplan* pPlan );
示例已编译验证
/* XRT_API xhttpcachestoredecision xrtHttpCacheStorePlan( const xhttpcachecontrol* pRequest, const xhttpcachecontrol* pResponse, const xhttpcachetime* pTime, const xhttpcachestoreinput* pInput, xhttpcachestoreplan* pPlan ); */ result = xrtHttpCacheStorePlan();
xrtHttpCacheUseInputInit
XRT_API bool xrtHttpCacheUseInputInit( xhttpcacheuseinput* pInput, uint16 iStatus, bool Shared );
示例已编译验证
httpcacheuseinputinit obj; xrtHttpCacheUseInputInit(&obj);
xrtHttpCacheUsePlan
XRT_API xhttpcacheusedecision xrtHttpCacheUsePlan( const xhttpcachecontrol* pRequest, const xhttpcachecontrol* pResponse, const xhttpcacheage* pAge, const xhttpcachefreshness* pFreshness, const xhttpcacheuseinput* pInput, xhttpcacheuseplan* pPlan );
示例已编译验证
/* XRT_API xhttpcacheusedecision xrtHttpCacheUsePlan( const xhttpcachecontrol* pRequest, const xhttpcachecontrol* pResponse, const xhttpcacheage* pAge, const xhttpcachefreshness* pFreshness, const xhttpcacheuseinput* pInput, xhttpcacheuseplan* pPlan ); */ result = xrtHttpCacheUsePlan();