MOOS 0.2375
|
#include <HTTPConnection.h>
Public Types | |
enum | eRequest { GET, POST } |
typedef std::map< std::string, std::list< std::string > > | HEADERMAP |
Public Member Functions | |
void | AddHeader (std::string sLine) |
bool | IsKeepAlive () |
bool | GetKeepAliveTime (double &dfTimeOut) |
bool | HasProperty (std::string sHeader, std::string sProp) |
bool | GetHeader (std::string sHeader, std::list< std::string > &Values) |
void | Clean () |
Public Attributes | |
eRequest | m_eRequest |
HEADERMAP | m_Headers |
structure encapsulating request
Definition at line 25 of file HTTPConnection.h.
typedef std::map<std::string,std::list<std::string> > CHTTPConnection::HTTPRequest::HEADERMAP |
collection of header strings to list of properties
Definition at line 36 of file HTTPConnection.h.
Definition at line 28 of file HTTPConnection.h.
void CHTTPConnection::HTTPRequest::AddHeader | ( | std::string | sLine | ) | [inline] |
add and process a header line
Definition at line 39 of file HTTPConnection.h.
void CHTTPConnection::HTTPRequest::Clean | ( | ) | [inline] |
clean down collection
Definition at line 113 of file HTTPConnection.h.
bool CHTTPConnection::HTTPRequest::GetHeader | ( | std::string | sHeader, |
std::list< std::string > & | Values | ||
) | [inline] |
fill in all propertirs of a given header
Definition at line 101 of file HTTPConnection.h.
bool CHTTPConnection::HTTPRequest::GetKeepAliveTime | ( | double & | dfTimeOut | ) | [inline] |
how long is tolerated between requests?
Definition at line 67 of file HTTPConnection.h.
bool CHTTPConnection::HTTPRequest::HasProperty | ( | std::string | sHeader, |
std::string | sProp | ||
) | [inline] |
returns true if connection has a required property
Definition at line 83 of file HTTPConnection.h.
bool CHTTPConnection::HTTPRequest::IsKeepAlive | ( | ) | [inline] |
returns true if connection stays live between requests
Definition at line 55 of file HTTPConnection.h.
Definition at line 33 of file HTTPConnection.h.
the collection of headers
Definition at line 119 of file HTTPConnection.h.