#include <http_client.h>
Definition at line 14 of file http_client.h.
void http_request::add_header |
( |
const char * |
name, |
|
|
const char * |
value |
|
) |
| |
|
inlineprivate |
Definition at line 25 of file http_client.h.
26 add_header(PFC_string_formatter() << name <<
": " << value);
void add_header(const char *name, const char *value)
Runs the request on the specified URL. Throws an exception on failure (connection error, invalid response from the server, reply code other than 2XX), returns a file::ptr interface to the stream on success.
virtual file::ptr http_request::run_ex |
( |
const char * |
url, |
|
|
abort_callback & |
abort |
|
) |
| |
|
privatepure virtual |
Runs the request on the specified URL. Throws an exception on failure but returns normally if the HTTP server returned a valid response other than 2XX, so the caller can still parse the received data stream if the server has returned an error.
The documentation for this class was generated from the following file: