summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-09-26 16:10:39 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-09-26 16:10:39 +0200
commitb9628c86543ffe819b030c3d84f65fa09e084850 (patch)
treee98e154b307a6a2b9eaa88c40d9c7fff8702e308 /include
parent1209744b38da0252731812d4cc5371be960fb3c3 (diff)
downloadqtlocation-mapboxgl-b9628c86543ffe819b030c3d84f65fa09e084850.tar.gz
add etag support and if-none-match/if-modified-since to cocoa http handling
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/storage/http_request.hpp2
-rw-r--r--include/mbgl/storage/response.hpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/mbgl/storage/http_request.hpp b/include/mbgl/storage/http_request.hpp
index 9edefcaaae..c81e23ef8d 100644
--- a/include/mbgl/storage/http_request.hpp
+++ b/include/mbgl/storage/http_request.hpp
@@ -30,7 +30,7 @@ private:
void handleCacheResponse(std::unique_ptr<Response> &&response, uv_loop_t *loop);
void handleHTTPResponse(HTTPResponseType responseType, std::unique_ptr<Response> &&response, uv_loop_t *loop);
- void startRequest(uv_loop_t *loop);
+ void startRequest(std::unique_ptr<Response> &&res, uv_loop_t *loop);
void removeCacheBaton();
void removeHTTPBaton();
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index 8125656d81..9357ad3c63 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -13,6 +13,7 @@ public:
long code = 0;
int64_t modified = 0;
int64_t expires = 0;
+ std::string etag;
std::string data;
std::string message;