RestClient.hh
Go to the documentation of this file.
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.
Stores a response to a RESTful request.
Definition: RestClient.hh:40
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: RestClient.hh:51