The Micro C++ Library
|
A HTTPConnection implements a HTTP client connection as defined by RFC2616 Hypertext Transfer Protocol -- HTTP/1.1. More...
#include <micxx/net/HTTPConnection.hxx>
Public Types | |
typedef std::map< std::string, std::string > | NameValueMap |
Map type used to store name value pairs like HTTP header attributes or query parameters. | |
Public Member Functions | |
HTTPConnection () | |
Create a new HTTPConnection. | |
virtual | ~HTTPConnection () |
virtual void | get (const std::string &url) |
Execute a HTTP GET request. | |
virtual void | get (const URL &url) |
Execute a HTTP GET request. | |
virtual const URL & | getURL () |
virtual void | setProxy (const std::string &proxy) |
virtual void | setReceiver (HTTPReceiver *receiver) |
Protected Member Functions | |
void | connect (const InetAddress &address) |
void | disconnect () |
Protected Attributes | |
std::string | proxy |
NameValueMap | header |
NameValueMap | query |
URL | url |
InetAddress | address |
traits::BiDiConnection * | connection |
HTTPReceiver * | receiver |
A HTTPConnection implements a HTTP client connection as defined by RFC2616 Hypertext Transfer Protocol -- HTTP/1.1.
typedef std::map<std::string,std::string> micxx::HTTPConnection::NameValueMap |
Map type used to store name value pairs like HTTP header attributes or query parameters.
micxx::HTTPConnection::HTTPConnection | ( | ) |
Create a new HTTPConnection.
virtual micxx::HTTPConnection::~HTTPConnection | ( | ) | [virtual] |
void micxx::HTTPConnection::connect | ( | const InetAddress & | address | ) | [protected] |
void micxx::HTTPConnection::disconnect | ( | ) | [protected] |
virtual void micxx::HTTPConnection::get | ( | const URL & | url | ) | [virtual] |
Execute a HTTP GET request.
virtual void micxx::HTTPConnection::get | ( | const std::string & | url | ) | [virtual] |
Execute a HTTP GET request.
virtual void micxx::HTTPConnection::setProxy | ( | const std::string & | proxy | ) | [virtual] |
virtual void micxx::HTTPConnection::setReceiver | ( | HTTPReceiver * | receiver | ) | [virtual] |
InetAddress micxx::HTTPConnection::address [protected] |
traits::BiDiConnection* micxx::HTTPConnection::connection [protected] |
NameValueMap micxx::HTTPConnection::header [protected] |
std::string micxx::HTTPConnection::proxy [protected] |
NameValueMap micxx::HTTPConnection::query [protected] |
HTTPReceiver* micxx::HTTPConnection::receiver [protected] |
URL micxx::HTTPConnection::url [protected] |