ledger-core
HttpRequest.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from http_client.djinni
3 
4 #ifndef DJINNI_GENERATED_HTTPREQUEST_HPP
5 #define DJINNI_GENERATED_HTTPREQUEST_HPP
6 
7 #include "../utils/optional.hpp"
8 #include <cstdint>
9 #include <memory>
10 #include <string>
11 #include <unordered_map>
12 #include <vector>
13 #ifndef LIBCORE_EXPORT
14  #if defined(_MSC_VER)
15  #include <libcore_export.h>
16  #else
17  #define LIBCORE_EXPORT
18  #endif
19 #endif
20 
21 namespace ledger { namespace core { namespace api {
22 
23 class HttpUrlConnection;
24 enum class HttpMethod;
25 struct Error;
26 
28 class LIBCORE_EXPORT HttpRequest {
29 public:
30  virtual ~HttpRequest() {}
31 
36  virtual HttpMethod getMethod() = 0;
37 
42  virtual std::unordered_map<std::string, std::string> getHeaders() = 0;
43 
48  virtual std::vector<uint8_t> getBody() = 0;
49 
54  virtual std::string getUrl() = 0;
55 
61  virtual void complete(const std::shared_ptr<HttpUrlConnection> & response, const std::experimental::optional<Error> & error) = 0;
62 };
63 
64 } } } // namespace ledger::core::api
65 #endif //DJINNI_GENERATED_HTTPREQUEST_HPP
Definition: Account.cpp:8
Definition: HttpRequest.hpp:28
Definition: optional.hpp:177