gz/fuel_tools/RestClient.hh
STL class.
STL class.
int statusCode
The returned status code. E.g.: 200.
Definition: gz/fuel_tools/RestClient.hh:43
void SetUserAgent(const std::string &_agent)
Set the user agent name.
HttpMethod
the types of HTTP methods
Definition: gz/fuel_tools/RestClient.hh:55
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:39
std::string data
The data received.
Definition: gz/fuel_tools/RestClient.hh:46
A helper class for making REST requests.
Definition: gz/fuel_tools/RestClient.hh:80
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:51
STL class.