gz/fuel_tools/RestClient.hh
Go to the documentation of this file.
A helper class for making REST requests.
Definition: gz/fuel_tools/RestClient.hh:83
void SetUserAgent(const std::string &_agent)
Set the user agent name.
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.
HttpMethod
the types of HTTP methods
Definition: gz/fuel_tools/RestClient.hh:58
Stores a response to a RESTful request.
Definition: gz/fuel_tools/RestClient.hh:42
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