9 #ifndef TurtleBrains_HTTPResponse_hpp
10 #define TurtleBrains_HTTPResponse_hpp
12 #include <turtle_brains/core/tb_configuration.hpp>
13 #if defined(tb_with_networking)
15 #include <turtle_brains/core/tb_types.hpp>
29 explicit Response(
const tbCore::int32 code = 0,
const std::vector<char>& data = std::vector<char>(),
30 const std::vector<tbCore::tbString>& headerLines = std::vector<tbCore::tbString>());
31 Response(
const Response& other);
34 bool IsValid(
void)
const;
35 operator bool()
const {
return IsValid(); }
39 const std::vector<char>& GetResponseData(
void)
const;
58 size_t GetNumberOfHeaders(
void)
const;
63 const std::vector<tbCore::tbString>& GetHeaders(
void)
const;
65 Response& operator=(
const Response& other);
68 friend class TurtleBrains::Network::HTTP::Request;
70 std::vector<char> mRawResponseData;
71 std::vector<tbCore::tbString> mHeaderLines;
80 namespace tbNetwork = TurtleBrains::Network;
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
int32_t int32
Signed integer with a size of 32 bits. Supports values from -2147483648 to 2147483647.
Definition: tb_types.hpp:27
std::string tbString
Definition: tb_string.hpp:335