Home
last modified time | relevance | path

Searched refs:cacheRequest_ (Results 1 - 4 of 4) sorted by relevance

/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_cache_strategy.cpp34 cacheRequest_.ParseRequestHeader(requestOptions_.GetHeader()); in HttpCacheStrategy()
35 cacheRequest_.SetRequestTime(requestOptions_.GetRequestTime()); in HttpCacheStrategy()
159 int64_t requestTime = cacheRequest_.GetRequestTime(); in ComputeFreshnessLifetimeSecondsInternal()
174 int64_t reqMaxAge = cacheRequest_.GetMaxAgeSeconds(); in ComputeFreshnessLifetimeMillis()
223 return !cacheResponse.IsNoStore() && !cacheRequest_.IsNoStore(); in IsCacheable()
232 int64_t minFreshMillis = std::max<int64_t>(0, cacheRequest_.GetMinFreshSeconds() * CONVERT_TO_MILLISECONDS); in GetFreshness()
236 maxStaleMillis = std::max<int64_t>(0, cacheRequest_.GetMaxStaleSeconds() * CONVERT_TO_MILLISECONDS); in GetFreshness()
247 if (cacheRequest_.IsNoCache()) { in RunStrategyInternal()
257 if (cacheRequest_.IsOnlyIfCached()) { in RunStrategyInternal()
268 if (cacheRequest_ in RunStrategyInternal()
[all...]
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/src/
H A Dhttp_cache_strategy.cpp37 cacheRequest_.ParseRequestHeader(requestOptions_.GetHeader()); in HttpCacheStrategy()
38 cacheRequest_.SetRequestTime(requestOptions_.GetRequestTime()); in HttpCacheStrategy()
161 int64_t requestTime = cacheRequest_.GetRequestTime(); in ComputeFreshnessLifetimeSecondsInternal()
176 int64_t reqMaxAge = cacheRequest_.GetMaxAgeSeconds(); in ComputeFreshnessLifetimeMillis()
225 return !cacheResponse.IsNoStore() && !cacheRequest_.IsNoStore(); in IsCacheable()
234 int64_t minFreshMillis = std::max<int64_t>(0, cacheRequest_.GetMinFreshSeconds() * CONVERT_TO_MILLISECONDS); in GetFreshness()
238 maxStaleMillis = std::max<int64_t>(0, cacheRequest_.GetMaxStaleSeconds() * CONVERT_TO_MILLISECONDS); in GetFreshness()
249 if (cacheRequest_.IsNoCache()) { in RunStrategyInternal()
259 if (cacheRequest_.IsOnlyIfCached()) { in RunStrategyInternal()
270 if (cacheRequest_ in RunStrategyInternal()
[all...]
/foundation/communication/netstack/frameworks/js/napi/http/cache/cache_strategy/include/
H A Dhttp_cache_strategy.h66 HttpCacheRequest cacheRequest_; member in OHOS::NetStack::Http::HttpCacheStrategy
/foundation/communication/netstack/frameworks/cj/http/include/
H A Dnet_http_cache_strategy.h65 HttpCacheRequest cacheRequest_; member in OHOS::NetStack::Http::HttpCacheStrategy

Completed in 2 milliseconds