RestResponse Struct Reference
Stores a response to a RESTful request. More...
#include <RestClient.hh>
Public Attributes | |
std::string | data = "" |
The data received. | |
std::map< std::string, std::string > | headers |
Map of headers where the key is the header type. For example, a raw header of the form "Content-Type: json" would use "Content-Type" as a key and "json" as the key's data. | |
int | statusCode = 0 |
The returned status code. E.g.: 200. | |
Detailed Description
Stores a response to a RESTful request.
Member Data Documentation
◆ data
std::string data = "" |
The data received.
◆ headers
std::map<std::string, std::string> headers |
Map of headers where the key is the header type. For example, a raw header of the form "Content-Type: json" would use "Content-Type" as a key and "json" as the key's data.
◆ statusCode
int statusCode = 0 |
The returned status code. E.g.: 200.
The documentation for this struct was generated from the following file: