4#include "utl/BinaryData.h"
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;
HTTPResponse(int statusCode, std::multimap< std::string, std::string > headers, std::unique_ptr< tenduke::utl::BinaryData > data)
Constructs new instance.
Definition HTTPResponse.cpp:11
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
HTTPResponse(int statusCode, std::multimap< std::string, std::string > headers, std::unique_ptr< tenduke::utl::BinaryData > data)
Constructs new instance.
Definition HTTPResponse.cpp:11
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
HTTP-related services.
Definition BadRequest.h:6
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4