From 290bd07a92d7103c67f606c1423785069fc9b776 Mon Sep 17 00:00:00 2001 From: Ivo van Dongen Date: Wed, 31 Aug 2016 16:43:33 +0200 Subject: [core] OnlineFileSource - rate limit --- include/mbgl/storage/response.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/mbgl/storage') diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp index 4dc3f36681..448423c1cb 100644 --- a/include/mbgl/storage/response.hpp +++ b/include/mbgl/storage/response.hpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -45,15 +46,18 @@ public: NotFound = 2, Server = 3, Connection = 4, + RateLimit = 5, Other = 6, } reason = Reason::Other; // An error message from the request handler, e.g. a server message or a system message // informing the user about the reason for the failure. std::string message; + + optional retryAfter; public: - Error(Reason, std::string = ""); + Error(Reason, std::string = "", optional = {}); }; std::ostream& operator<<(std::ostream&, Response::Error::Reason); -- cgit v1.2.1