Thoth
A functional, expressive, asynchronous C++26 webdev library
Loading...
Searching...
No Matches
CacheControl.hpp
Go to the documentation of this file.
1#pragma once
2#include <variant>
3#include <chrono>
4#include <numeric>
5
6
7// namespace Thoth::Http::NHeaders {
8// //! @brief RFC 9111 - HTTP Caching
9//
10// namespace NCacheControl {
11// // Request
12// struct MaxAge{ std::chrono::seconds seconds; };
13// struct MaxStale{ std::chrono::seconds seconds{ (std::numeric_limits<uint32_t>::max)() }; };
14// struct MinFresh{ std::chrono::seconds seconds; };
15// struct NoCache{};
16// struct NoStore{};
17// struct NoTransform{};
18// struct OnlyIfCached{};
19//
20// // Response
21// struct MustRevalidate {};
22// struct Public {};
23// struct Private {};
24// struct ProxyRevalidate {};
25// struct SMaxage { std::chrono::seconds seconds; };
26// // Also NoCache, NoStore, NoTransform and MaxAge.
27//
28// // Extended
29//
30//
31// }
32//
33// using CacheControl = std::variant<>;
34// }