|
10Duke Enterprise C++ SDK
|
#include <HTTPResponse.h>
A HTTP Response.
Public Member Functions | |
| HTTPResponse (int statusCode, std::multimap< std::string, std::string > headers, std::unique_ptr< tenduke::utl::BinaryData > data) | |
| Constructs new instance. | |
| HTTPResponse (const HTTPResponse &original) | |
| Copy-constructs new instance. | |
| virtual std::string | getContentType () |
| Returns response content type. | |
| virtual std::string | getPayloadAsString () |
| Returns the response entity (payload) as string. | |
| virtual std::size_t | getPayloadLength () |
| Returns length of the response entity /payload). | |
| int | getStatusCode () const |
| Returns the HTTP-status code. | |
| bool | isSuccessful () const |
| Checks if the request is successful based on the HTTP status code. | |
| tenduke::http::HTTPResponse::HTTPResponse | ( | int | statusCode, |
| std::multimap< std::string, std::string > | headers, | ||
| std::unique_ptr< tenduke::utl::BinaryData > | data ) |
Constructs new instance.
| statusCode | - |
| headers | - |
| data | - |
| tenduke::http::HTTPResponse::HTTPResponse | ( | const HTTPResponse & | original | ) |
Copy-constructs new instance.
| original | - |
|
virtual |
Returns response content type.
|
virtual |
Returns the response entity (payload) as string.
|
virtual |
Returns length of the response entity /payload).
|
inline |
Returns the HTTP-status code.
| bool tenduke::http::HTTPResponse::isSuccessful | ( | ) | const |
Checks if the request is successful based on the HTTP status code.