summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/response.hpp
blob: b5973457b517a144a9d0a4f01bf982506b4f9b9f (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
26
27
#ifndef MBGL_STORAGE_RESPONSE
#define MBGL_STORAGE_RESPONSE

#include <string>
#include <memory>

namespace mbgl {

class Response {
public:
    bool isExpired() const;

public:
    enum Status { Error, Successful, NotFound };

    Status status = Error;
    bool stale = false;
    std::string message;
    int64_t modified = 0;
    int64_t expires = 0;
    std::string etag;
    std::shared_ptr<const std::string> data;
};

}

#endif