BazisLib::Network::HTTP::CHTTPRequestHeader Class Reference

Represents a HTTP fieldset plus logic for handling first line of HTTP request. More...

#include <http.h>

Inherits BazisLib::Network::HTTP::CHTTPHeader.

Inherited by BazisLib::Network::HTTP::ACHTTPRequest.

Collaboration diagram for BazisLib::Network::HTTP::CHTTPRequestHeader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CHTTPRequestHeader (const CHTTPConnectInfo &pInfo)
 CHTTPRequestHeader (const std::string &header)
 CHTTPRequestHeader (const ConstManagedPointer< AIAdvancedSocket > &pSocket)
bool Send (const ConstManagedPointer< AISocket > &pSocket)
 Sends the field set to a socket.
bool Valid ()
bool MergeFields (const ConstManagedPointer< ACHTTPRequest > &pSourceRequest, bool ReplaceFirstLine)

Public Attributes

std::string m_Path
std::string m_HTTPVersion
unsigned m_RequestType

Protected Member Functions

bool ParseFirstLine (const std::string &firstLine)
std::string BuildFirstLine ()


Detailed Description

Represents a HTTP fieldset plus logic for handling first line of HTTP request.

This class allows building/parsing first line of a HTTP request directly by accessing its components, such as HTTP version, request type and path.

Remarks:
The class is designed to be used both in HTTP client and HTTP server applications, as its allows representing HTTP request in a convenient format.

Constructor & Destructor Documentation

BazisLib::Network::HTTP::CHTTPRequestHeader::CHTTPRequestHeader ( const CHTTPConnectInfo pInfo  ) 

BazisLib::Network::HTTP::CHTTPRequestHeader::CHTTPRequestHeader ( const std::string &  header  ) 

BazisLib::Network::HTTP::CHTTPRequestHeader::CHTTPRequestHeader ( const ConstManagedPointer< AIAdvancedSocket > &  pSocket  ) 


Member Function Documentation

std::string BazisLib::Network::HTTP::CHTTPRequestHeader::BuildFirstLine (  )  [protected]

bool BazisLib::Network::HTTP::CHTTPRequestHeader::MergeFields ( const ConstManagedPointer< ACHTTPRequest > &  pSourceRequest,
bool  ReplaceFirstLine 
)

bool BazisLib::Network::HTTP::CHTTPRequestHeader::ParseFirstLine ( const std::string &  firstLine  )  [protected]

bool BazisLib::Network::HTTP::CHTTPRequestHeader::Send ( const ConstManagedPointer< AISocket > &  pSocket  ) 

Sends the field set to a socket.

Reimplemented from BazisLib::Network::HTTP::CHTTPHeader.

bool BazisLib::Network::HTTP::CHTTPRequestHeader::Valid (  )  [inline]


Member Data Documentation


The documentation for this class was generated from the following file:
SourceForge.net Logo