#include <http_connection.hpp>
Public Types | |
enum | http_method { POST, GET } |
typedef boost::shared_ptr < http_connection > | ptr |
Public Member Functions | |
http_connection (const std::string &url="") | |
void | set_url (const std::string &url) |
void | set_http_method (const std::string &method) |
void | set_path (const std::string &path) |
void | set_args (const std::string &args) |
void | set_header (const std::string key, const std::string &value) |
boost::optional< std::string > | get_header (const std::string &key) |
Protected Member Functions | |
virtual void | send (const json::value &msg, const connection::pending_result::ptr &pr) |
virtual void | send (const json::value &msg) |
Unlike the TCP connection, the HTTP connection will open a new connection for each call if necessary.
Definition at line 11 of file http_connection.hpp.