MACE  1.0.0
 All Classes Namespaces Files Functions Variables Enumerations Defines
Public Types | Public Member Functions | Protected Member Functions
mace::rpc::json::http_connection Class Reference

#include <http_connection.hpp>

Inheritance diagram for mace::rpc::json::http_connection:
mace::rpc::json::connection

List of all members.

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)

Detailed Description

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.


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