Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
horizon::HTTP::RESTClient Class Reference
Inheritance diagram for horizon::HTTP::RESTClient:
horizon::HTTP::Client horizon::RawClient

Public Member Functions

 RESTClient (const std::string &base)
 
json get (const std::string &url)
 
json post (const std::string &url, const json &postdata=json())
 
- Public Member Functions inherited from horizon::HTTP::Client
void set_auth (const std::string &user, const std::string &passwd)
 
void set_timeout (int timeout)
 
void append_header (const char *header)
 
void append_header (const std::string &header)
 
void clear_headers ()
 
std::string get (const std::string &url)
 
std::string post (const std::string &url, const std::string &postdata="")
 
std::string post_form (const std::string &url, const std::vector< std::pair< std::string, std::string > > &fields)
 
const ResponseHeaders & get_response_headers () const
 

Additional Inherited Members

- Public Types inherited from horizon::HTTP::Client
using ResponseHeaders = std::list< std::string >
 

The documentation for this class was generated from the following files: