xrtHttpCacheMethodDefault

判断标准方法是否定义了本模块实现的默认缓存语义。

bool xrtHttpCacheMethodDefault(xstrview Method);
参数说明
xstrview MethodHTTP 方法
返回:判断标准方法是否定义了本模块实现的默认缓存语义。

示例已编译验证

/* 判断标准方法是否定义了本模块实现的默认缓存语义。 */
result = xrtHttpCacheMethodDefault(Method);

xrtHttpCacheStatusHeuristic

判断 RFC 9110 状态是否允许在没有显式寿命时使用启发式新鲜度。

bool xrtHttpCacheStatusHeuristic(uint16 iStatus);
参数说明
uint16 iStatus状态码
返回:判断 RFC 9110 状态是否允许在没有显式寿命时使用启发式新鲜度。

示例已编译验证

/* 判断 RFC 9110 状态是否允许在没有显式寿命时使用启发式新鲜度。 */
result = xrtHttpCacheStatusHeuristic(iStatus);

xrtHttpCacheStoreInputInit

XRT_API bool xrtHttpCacheStoreInputInit( xhttpcachestoreinput* pInput, xstrview Method, uint16 iStatus, bool Shared );

;
返回: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 );

示例已编译验证

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

;
返回: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 );

示例已编译验证

/* XRT_API xhttpcacheusedecision xrtHttpCacheUsePlan( const xhttpcachecontrol* pRequest, const xhttpcachecontrol* pResponse, const xhttpcacheage* pAge, const xhttpcachefreshness* pFreshness, const xhttpcacheuseinput* pInput, xhttpcacheuseplan* pPlan ); */
result = xrtHttpCacheUsePlan();