Ion
|
HttpClient is a very basic class that sends HTTP requests and returns the server's response. More...
#include "httpclient.h"
Classes | |
struct | Response |
struct | Url |
Simple wrapper around a URL. More... | |
Public Member Functions | |
HttpClient () | |
virtual | ~HttpClient () |
virtual const Response | Get (const std::string &url) const |
Sends a GET request for a URL and returns the remote host's response. More... | |
virtual const Response | GetRange (const std::string &url, int64 start, int64 end) const |
Sends a GET request for the passed byte range and returns the remote host's response. More... | |
virtual const Response | Head (const std::string &url) const |
Sends a HEAD request for a URL and returns the remote host's response. More... | |
virtual const Response | Post (const std::string &url, const std::string &data) |
POSTs data to URL and returns the remote host's response. More... | |
virtual const Response | Put (const std::string &url, const std::string &data) |
PUTs data to URL and returns the remote host's response. More... | |
HttpClient is a very basic class that sends HTTP requests and returns the server's response.
It is not very intelligent about parsing URLs, especially those with complex encodings, but it can handle simple GETs and the like.
Definition at line 32 of file httpclient.h.
ion::remote::HttpClient::HttpClient | ( | ) |
Definition at line 215 of file httpclient.cc.
|
virtual |
Definition at line 218 of file httpclient.cc.
|
virtual |
Sends a GET request for a URL and returns the remote host's response.
Definition at line 221 of file httpclient.cc.
|
virtual |
Sends a GET request for the passed byte range and returns the remote host's response.
Definition at line 225 of file httpclient.cc.
|
virtual |
Sends a HEAD request for a URL and returns the remote host's response.
Definition at line 230 of file httpclient.cc.
|
virtual |
POSTs data to URL and returns the remote host's response.
Definition at line 234 of file httpclient.cc.
|
virtual |
PUTs data to URL and returns the remote host's response.
Definition at line 239 of file httpclient.cc.