diff options
Diffstat (limited to 'include/mbgl/storage/response.hpp')
-rw-r--r-- | include/mbgl/storage/response.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp new file mode 100644 index 0000000000..9357ad3c63 --- /dev/null +++ b/include/mbgl/storage/response.hpp @@ -0,0 +1,26 @@ +#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 etag; + std::string data; + + std::string message; + + static int64_t parseCacheControl(const char *value); +}; + +} + +#endif
\ No newline at end of file |