Files
MapLibreParticleLab/src/mbgl/util/http_header.hpp

26 lines
431 B
C++

#ifndef MBGL_UTIL_HTTP_HEADER
#define MBGL_UTIL_HTTP_HEADER
#include <mbgl/util/optional.hpp>
#include <mbgl/util/chrono.hpp>
#include <string>
namespace mbgl {
namespace http {
class CacheControl {
public:
static CacheControl parse(const std::string&);
optional<uint64_t> maxAge;
bool mustRevalidate = false;
optional<SystemTimePoint> toTimePoint() const;
};
} // namespace http
} // namespace mbgl
#endif