diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-09-15 17:26:44 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-09-24 16:14:09 +0200 |
commit | d9fc7708a2dfb6e2506a5d10d896a813557c056d (patch) | |
tree | 50b2dba9e0a8766c88f7c276a8f71742a06a1d67 /include/mbgl/storage/response.hpp | |
parent | 062e911c6d570a794431023f9f0cb0b02cd85667 (diff) | |
download | qtlocation-mapboxgl-d9fc7708a2dfb6e2506a5d10d896a813557c056d.tar.gz |
do 304 requests and cache them in sqlite
Diffstat (limited to 'include/mbgl/storage/response.hpp')
-rw-r--r-- | include/mbgl/storage/response.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp new file mode 100644 index 0000000000..4960173f9e --- /dev/null +++ b/include/mbgl/storage/response.hpp @@ -0,0 +1,23 @@ +#ifndef MBGL_STORAGE_RESPONSE +#define MBGL_STORAGE_RESPONSE + +#include <string> +#include <ctime> + +namespace mbgl { + +class Response { +public: + long code = 0; + int64_t modified = 0; + int64_t expires = 0; + std::string data; + + std::string message; + + static int64_t parseCacheControl(const char *value); +}; + +} + +#endif
\ No newline at end of file |