9 #ifndef TurtleBrains_HTTPRequest_hpp
10 #define TurtleBrains_HTTPRequest_hpp
12 #include <turtle_brains/core/tb_configuration.hpp>
13 #if defined(tb_with_networking)
15 #include <turtle_brains/core/tb_types.hpp>
16 #include <turtle_brains/core/tb_noncopyable.hpp>
18 #include <turtle_brains/network/tb_http_response.hpp>
25 class RequestImplementation;
34 enum class Method { Get, Post };
45 explicit Request(
const tbCore::tbString& remotePath,
const Method httpMethod = Method::Get);
76 void AddFileContents(
const char* fileData,
size_t fileSize);
82 void AddPostContents(
const char* postData,
size_t postSize);
88 void SetDebugFlag(
void);
94 Response GetResponse(
void);
106 void GetResponseAsync(std::function<
void(Response)> responseCallback);
109 std::unique_ptr<tbImplementation::RequestImplementation> mImplementation;
116 namespace tbNetwork = TurtleBrains::Network;
Definition: tb_noncopyable.hpp:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
std::string tbString
Definition: tb_string.hpp:335
Definition: tb_application_dialog.hpp:19