cxxtools::http::Client Class Reference

#include <cxxtools/http/client.h>

Inheritance diagram for cxxtools::http::Client:
cxxtools::NonCopyable

Public Member Functions

 Client ()
 Client (const std::string &host, unsigned short int port)
 Client (const net::AddrInfo &addr)
 Client (const net::Uri &uri)
 Client (SelectorBase &selector, const std::string &host, unsigned short int port)
 Client (SelectorBase &selector, const net::AddrInfo &addrinfo)
 Client (SelectorBase &selector, const net::Uri &uri)
 ~Client ()
void connect (const net::AddrInfo &addrinfo)
void connect (const std::string &host, unsigned short int port)
const ReplyHeaderexecute (const Request &request, std::size_t timeout=Selectable::WaitInfinite)
const ReplyHeaderheader ()
void readBody (std::string &s)
std::string readBody ()
std::string get (const std::string &url, std::size_t timeout=Selectable::WaitInfinite)
void beginExecute (const Request &request)
void endExecute ()
void setSelector (SelectorBase &selector)
SelectorBaseselector ()
bool wait (std::size_t msecs)
std::istream & in ()
const std::string & host () const
unsigned short int port () const
void auth (const std::string &username, const std::string &password)
void clearAuth ()
void cancel ()

Public Attributes

Signal< Client & > requestSent
Signal< Client & > headerReceived
cxxtools::Delegate
< std::size_t, Client & > 
bodyAvailable
Signal< Client & > replyFinished

Additional Inherited Members

- Private Member Functions inherited from cxxtools::NonCopyable
 NonCopyable ()

Constructor & Destructor Documentation

cxxtools::http::Client::Client ( )
cxxtools::http::Client::Client ( const std::string &  host,
unsigned short int  port 
)
cxxtools::http::Client::Client ( const net::AddrInfo addr)
explicit
cxxtools::http::Client::Client ( const net::Uri uri)
explicit
cxxtools::http::Client::Client ( SelectorBase selector,
const std::string &  host,
unsigned short int  port 
)
cxxtools::http::Client::Client ( SelectorBase selector,
const net::AddrInfo addrinfo 
)
cxxtools::http::Client::Client ( SelectorBase selector,
const net::Uri uri 
)
cxxtools::http::Client::~Client ( )

Member Function Documentation

void cxxtools::http::Client::auth ( const std::string &  username,
const std::string &  password 
)
void cxxtools::http::Client::beginExecute ( const Request request)
void cxxtools::http::Client::cancel ( )
void cxxtools::http::Client::clearAuth ( )
void cxxtools::http::Client::connect ( const net::AddrInfo addrinfo)
void cxxtools::http::Client::connect ( const std::string &  host,
unsigned short int  port 
)
void cxxtools::http::Client::endExecute ( )
const ReplyHeader& cxxtools::http::Client::execute ( const Request request,
std::size_t  timeout = Selectable::WaitInfinite 
)
std::string cxxtools::http::Client::get ( const std::string &  url,
std::size_t  timeout = Selectable::WaitInfinite 
)
const ReplyHeader& cxxtools::http::Client::header ( )
const std::string& cxxtools::http::Client::host ( ) const
std::istream& cxxtools::http::Client::in ( )
unsigned short int cxxtools::http::Client::port ( ) const
void cxxtools::http::Client::readBody ( std::string &  s)
std::string cxxtools::http::Client::readBody ( )
inline
SelectorBase* cxxtools::http::Client::selector ( )
void cxxtools::http::Client::setSelector ( SelectorBase selector)
bool cxxtools::http::Client::wait ( std::size_t  msecs)

Member Data Documentation

cxxtools::Delegate<std::size_t, Client&> cxxtools::http::Client::bodyAvailable
Signal<Client&> cxxtools::http::Client::headerReceived
Signal<Client&> cxxtools::http::Client::replyFinished
Signal<Client&> cxxtools::http::Client::requestSent

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