identt
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
identt::http::ClientBase< socket_type > Class Template Referenceabstract
Inheritance diagram for identt::http::ClientBase< socket_type >:
identt::http::HttpClient< socket_type >

Public Types

using Response = ClientResponse< socket_type >
 
using RespPtr = std::shared_ptr< Response >
 

Public Member Functions

RespPtr request (const std::string &request_type, const std::string &path="/", const std::map< std::string, std::string > &header=std::map< std::string, std::string >())
 
RespPtr request (const std::string &request_type, const std::string &path, std::ostream &content, const std::map< std::string, std::string > &header=std::map< std::string, std::string >())
 

Protected Member Functions

 ClientBase (const std::string &host_port, unsigned short default_port)
 
virtual void connect ()=0
 
void parse_response_header (RespPtr response, std::istream &stream) const
 

Protected Attributes

boost::asio::io_service asio_io_service
 
boost::asio::ip::tcp::endpoint asio_endpoint
 
boost::asio::ip::tcp::resolver asio_resolver
 
std::shared_ptr< socket_type > socket
 
bool socket_error
 
std::string host
 
unsigned short port
 

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