gz/fuel_tools/RestClient.hh
STL class.
STL class.
int statusCode
The returned status code. E.g.: 200.
Definition: gz/fuel_tools/RestClient.hh:45
void SetUserAgent(const std::string &_agent)
Set the user agent name.
HttpMethod
the types of HTTP methods
Definition: gz/fuel_tools/RestClient.hh:57
virtual RestResponse Request(const HttpMethod _method, const std::string &_url, const std::string &_version, const std::string &_path, const std::vector< std::string > &_queryStrings, const std::vector< std::string > &_headers, const std::string &_data, const std::multimap< std::string, std::string > &_form=std::multimap< std::string, std::string >()) const
Trigger a REST request.
Stores a response to a RESTful request.
Definition: gz/fuel_tools/RestClient.hh:41
std::string data
The data received.
Definition: gz/fuel_tools/RestClient.hh:48
A helper class for making REST requests.
Definition: gz/fuel_tools/RestClient.hh:82
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:...
Definition: gz/fuel_tools/RestClient.hh:53
STL class.