summaryrefslogtreecommitdiff
path: root/src/mbgl/util/http_header.hpp
blob: 8a83356977971f886dd043972295f6969f04462d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#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<Timestamp> toTimePoint() const;
};

} // namespace http
} // namespace mbgl