MOOS 0.2375
Public Types | Public Member Functions | Public Attributes
CHTTPConnection::HTTPRequest Struct Reference

#include <HTTPConnection.h>

List of all members.

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

Detailed Description

structure encapsulating request

Definition at line 25 of file HTTPConnection.h.


Member Typedef Documentation

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.


Member Enumeration Documentation

Enumerator:
GET 
POST 

Definition at line 28 of file HTTPConnection.h.


Member Function Documentation

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.


Member Data Documentation

Definition at line 33 of file HTTPConnection.h.

the collection of headers

Definition at line 119 of file HTTPConnection.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines