add etag support and if-none-match/if-modified-since to cocoa http handling
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user