#include #include #include namespace mbgl { Seconds HTTPRequestBase::parseCacheControl(const char *value) { if (value) { const auto cacheControl = http::CacheControl::parse(value); if (cacheControl.maxAge) { return toSeconds(SystemClock::now()) + Seconds(*cacheControl.maxAge); } } return Seconds::zero(); } }