ledger-core
HttpUrlConnection.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from http_client.djinni
3 
4 #ifndef DJINNI_GENERATED_HTTPURLCONNECTION_HPP
5 #define DJINNI_GENERATED_HTTPURLCONNECTION_HPP
6 
7 #include <cstdint>
8 #include <string>
9 #include <unordered_map>
10 #ifndef LIBCORE_EXPORT
11  #if defined(_MSC_VER)
12  #include <libcore_export.h>
13  #else
14  #define LIBCORE_EXPORT
15  #endif
16 #endif
17 
18 namespace ledger { namespace core { namespace api {
19 
20 struct HttpReadBodyResult;
21 
24 public:
25  virtual ~HttpUrlConnection() {}
26 
31  virtual int32_t getStatusCode() = 0;
32 
37  virtual std::string getStatusText() = 0;
38 
43  virtual std::unordered_map<std::string, std::string> getHeaders() = 0;
44 
49  virtual HttpReadBodyResult readBody() = 0;
50 };
51 
52 } } } // namespace ledger::core::api
53 #endif //DJINNI_GENERATED_HTTPURLCONNECTION_HPP
Definition: HttpReadBodyResult.hpp:17
virtual HttpReadBodyResult readBody()=0
virtual std::unordered_map< std::string, std::string > getHeaders()=0
Definition: HttpUrlConnection.hpp:23
virtual std::string getStatusText()=0
Definition: Account.cpp:8