[core] Use better types for modified / expires / etag
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define MBGL_STORAGE_RESPONSE
|
||||
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
#include <mbgl/util/optional.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
@@ -25,9 +26,9 @@ public:
|
||||
// The actual data of the response. This is guaranteed to never be empty.
|
||||
std::shared_ptr<const std::string> data;
|
||||
|
||||
Seconds modified = Seconds::zero();
|
||||
Seconds expires = Seconds::zero();
|
||||
std::string etag;
|
||||
optional<SystemTimePoint> modified;
|
||||
optional<SystemTimePoint> expires;
|
||||
optional<std::string> etag;
|
||||
};
|
||||
|
||||
class Response::Error {
|
||||
|
||||
Reference in New Issue
Block a user