Moved ResponseStatus to its own header
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <mbgl/storage/http_context.hpp>
|
||||
#include <mbgl/storage/http_request_base.hpp>
|
||||
#include <mbgl/storage/resource.hpp>
|
||||
#include <mbgl/storage/response.hpp>
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
@@ -34,26 +35,6 @@ void handleError(CURLcode code) {
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
enum class ResponseStatus : int8_t {
|
||||
// This error probably won't be resolved by retrying anytime soon. We are giving up.
|
||||
PermanentError,
|
||||
|
||||
// This error might be resolved by waiting some time (e.g. server issues).
|
||||
// We are going to do an exponential back-off and will try again in a few seconds.
|
||||
TemporaryError,
|
||||
|
||||
// This error might be resolved once the network reachability status changes.
|
||||
// We are going to watch the network status for changes and will retry as soon as the
|
||||
// operating system notifies us of a network status change.
|
||||
ConnectionError,
|
||||
|
||||
// The request returned data successfully. We retrieved and decoded the data successfully.
|
||||
Successful,
|
||||
|
||||
// The request confirmed that the data wasn't changed. We already have the data.
|
||||
NotModified,
|
||||
};
|
||||
|
||||
class HTTPRequest;
|
||||
|
||||
class HTTPCURLContext : public HTTPContext {
|
||||
|
||||
Reference in New Issue
Block a user