summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/response.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-01-13 16:47:36 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-01-14 13:46:03 -0800
commit2aafdbc1b84192d9a51ff7f5f9d9830e0951bb2a (patch)
treeb43c6d0bbb86988628c611f21ba7d2cc15340c40 /include/mbgl/storage/response.hpp
parent2ee1fe41786742332d190b01e28ba88a72c59f43 (diff)
downloadqtlocation-mapboxgl-2aafdbc1b84192d9a51ff7f5f9d9830e0951bb2a.tar.gz
[core] Add an explicit "not modified" indicator to Response
Diffstat (limited to 'include/mbgl/storage/response.hpp')
-rw-r--r--include/mbgl/storage/response.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index 852110cb2a..532a91da97 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -24,6 +24,9 @@ public:
// Stale responses are fetched from cache and are expired.
bool stale = false;
+ // This is set to true for 304 Not Modified responses.
+ bool notModified = false;
+
// The actual data of the response. This is guaranteed to never be empty.
std::shared_ptr<const std::string> data;