Files
MapLibreParticleLab/include/mbgl/storage/response.hpp
Konstantin Käfer c0c554e36f [core] reparse tiles when new data arrives
We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object.
2015-10-26 15:54:27 +01:00

28 lines
436 B
C++

#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