blob: 23da2c9ea492a31422efae8356077fbf502e03dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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;
};
optional<Timestamp> parseRetryHeaders(const optional<std::string>& retryAfter,
const optional<std::string>& xRateLimitReset);
} // namespace http
} // namespace mbgl
|