summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/response.hpp
blob: 4960173f9e8e189da51d7af58cf72c67bb34f02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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