summaryrefslogtreecommitdiff
path: root/src/mbgl/storage/http_request.hpp
blob: bbe1265c6da7106b4e70189ebaef3cd9ed62bdf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef MBGL_STORAGE_DEFAULT_HTTP_REQUEST
#define MBGL_STORAGE_DEFAULT_HTTP_REQUEST

#include "request_base.hpp"

typedef struct uv_loop_s uv_loop_t;

namespace mbgl {

class HTTPRequestImpl;

class HTTPRequest : public RequestBase {
public:
    HTTPRequest(const Resource&, Callback, uv_loop_t*, std::shared_ptr<const Response> = nullptr);

    void cancel() override;
    void retryImmediately();

private:
    ~HTTPRequest();

    HTTPRequestImpl* impl;
    friend class HTTPRequestImpl;
};

}

#endif