The Micro C++ Library
micxx::HTTPConnection Class Reference

A HTTPConnection implements a HTTP client connection as defined by RFC2616 Hypertext Transfer Protocol -- HTTP/1.1. More...

#include <micxx/net/HTTPConnection.hxx>

List of all members.

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 URLgetURL ()
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::BiDiConnectionconnection
HTTPReceiverreceiver

Detailed Description

A HTTPConnection implements a HTTP client connection as defined by RFC2616 Hypertext Transfer Protocol -- HTTP/1.1.

Author:
Norbert Klose
Date:
October, 2011

Member Typedef Documentation

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.


Constructor & Destructor Documentation

micxx::HTTPConnection::HTTPConnection ( )

Create a new HTTPConnection.

virtual micxx::HTTPConnection::~HTTPConnection ( ) [virtual]

Member Function Documentation

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 const URL& micxx::HTTPConnection::getURL ( ) [inline, virtual]
    {
        return url;
    }
virtual void micxx::HTTPConnection::setProxy ( const std::string &  proxy) [virtual]
virtual void micxx::HTTPConnection::setReceiver ( HTTPReceiver receiver) [virtual]

Member Data Documentation

std::string micxx::HTTPConnection::proxy [protected]

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