4#include "utl/BinaryData.h"
10namespace tenduke {
namespace http {
25 std::multimap<std::string, std::string> headers,
26 std::unique_ptr<tenduke::utl::BinaryData> data
68 const std::multimap<std::string, std::string> headers;
69 const std::unique_ptr<tenduke::utl::BinaryData> data;
A HTTP Response.
Definition HTTPResponse.h:15
virtual std::size_t getPayloadLength()
Returns length of the response entity /payload).
Definition HTTPResponse.cpp:51
virtual std::string getContentType()
Returns response content type.
Definition HTTPResponse.cpp:33
int getStatusCode() const
Returns the HTTP-status code.
Definition HTTPResponse.h:58
bool isSuccessful() const
Checks if the request is successful based on the HTTP status code.
Definition HTTPResponse.cpp:27
virtual std::string getPayloadAsString()
Returns the response entity (payload) as string.
Definition HTTPResponse.cpp:45
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4