MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / ResponseCacheControl

Class ResponseCacheControl

CesiumAsync/src/ResponseCacheControl.h:15–150  ·  view source on GitHub ↗

* @brief Response cache control directives parsed from the response header. */

Source from the content-addressed store, hash-verified

13 * @brief Response cache control directives parsed from the response header.
14 */
15class ResponseCacheControl {
16public:
17 /**
18 * @brief Constructor.
19 * @param mustRevalidate Must-Revalidate directive that appears in the
20 * Cache-Control header
21 * @param noCache No-Cache directive that appears in the Cache-Control header
22 * @param noStore No-Store directive that appears in the Cache-Control header
23 * @param noTransform No-Transform directive that appears in the Cache-Control
24 * header
25 * @param accessControlPublic Public directive that appears in the
26 * Cache-Control header
27 * @param accessControlPrivate Private directive that appears in the
28 * Cache-Control header
29 * @param proxyRevalidate Proxy-Revalidate directive that appears in the
30 * Cache-Control header
31 * @param maxAge Max-Age directive that appears in the Cache-Control header
32 * @param sharedMaxAge S-Maxage directive that appears in the Cache-Control
33 * header
34 */
35 ResponseCacheControl(
36 bool mustRevalidate,
37 bool noCache,
38 bool noStore,
39 bool noTransform,
40 bool accessControlPublic,
41 bool accessControlPrivate,
42 bool proxyRevalidate,
43 std::optional<int> maxAge,
44 std::optional<int> sharedMaxAge,
45 std::optional<int> staleWhileRevalidate);
46
47 /**
48 * @brief Must-Revalidate directive that appears in the Cache-Control header.
49 */
50 inline bool mustRevalidate() const noexcept { return _mustRevalidate; }
51
52 /**
53 * @brief No-Cache directive that appears in the Cache-Control header.
54 */
55 inline bool noCache() const noexcept { return _noCache; }
56
57 /**
58 * @brief No-Store directive that appears in the Cache-Control header.
59 */
60 inline bool noStore() const noexcept { return _noStore; }
61
62 /**
63 * @brief No-Transform directive that appears in the Cache-Control header.
64 */
65 inline bool noTransform() const noexcept { return _noTransform; }
66
67 /**
68 * @brief Public directive that appears in the Cache-Control header.
69 */
70 inline bool accessControlPublic() const noexcept {
71 return _accessControlPublic;
72 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected