MACE  1.0.0
 All Classes Namespaces Files Functions Variables Enumerations Defines
libs/rpc/include/mace/rpc/json/http_client_base.hpp
00001 #ifndef _MACE_RPC_JSON_HTTP_CLIENT_BASE_HPP_
00002 #define _MACE_RPC_JSON_HTTP_CLIENT_BASE_HPP_
00003 #include <mace/rpc/json/client_base.hpp>
00004 
00005 namespace mace { namespace rpc { namespace json {
00006   class http_client_base : public client_base {
00007     public:
00008       http_client_base( const std::string& url );
00009       void set_url( const std::string& url );
00010       void set_http_method( const std::string& method ); // POST / GET 
00011       void set_path( const std::string& path );
00012       void set_args( const std::string& args );
00013       void set_header( const std::string key, const std::string& value );
00014       boost::optional<std::string> get_header( const std::string& key );
00015   };
00016 } } }
00017 
00018 #endif // _MACE_RPC_JSON_HTTP_CLIENT_BASE_HPP_