BazisLib::Network::HTTP::CHTTPReplyHeader Class Reference

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

#include <http.h>

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

Collaboration diagram for BazisLib::Network::HTTP::CHTTPReplyHeader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CHTTPReplyHeader (unsigned ReplyCode=200, const std::string &HTTPMessage="OK", const std::string &ContentType="", const std::string &ContentLength="", const std::string &Location="")
 Create new request based on connection info.
 CHTTPReplyHeader (const ConstManagedPointer< AIAdvancedSocket > &pSocket)
 Read reply header from socket.
bool Send (const ConstManagedPointer< AISocket > &pSocket)
 Sends the field set to a socket.
ActionStatus TranslateResult (std::string &redirectURL)
ULONGLONG GetLength ()
bool IsChunked ()
bool IsPartial ()
bool Valid ()
unsigned GetReplyCode ()

Public Attributes

unsigned m_ReplyCode
std::string m_HTTPVersion
std::string m_HTTPMessage
unsigned m_LastError

Protected Member Functions

bool ParseFirstLine (const std::string &firstLine)


Detailed Description

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

The idea of this class is similar to the CHTTPRequestHeader. See its descriptions for details


Constructor & Destructor Documentation

BazisLib::Network::HTTP::CHTTPReplyHeader::CHTTPReplyHeader ( unsigned  ReplyCode = 200,
const std::string &  HTTPMessage = "OK",
const std::string &  ContentType = "",
const std::string &  ContentLength = "",
const std::string &  Location = "" 
)

Create new request based on connection info.

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

Read reply header from socket.


Member Function Documentation

ULONGLONG BazisLib::Network::HTTP::CHTTPReplyHeader::GetLength (  )  [inline]

unsigned BazisLib::Network::HTTP::CHTTPReplyHeader::GetReplyCode (  )  [inline]

bool BazisLib::Network::HTTP::CHTTPReplyHeader::IsChunked (  )  [inline]

bool BazisLib::Network::HTTP::CHTTPReplyHeader::IsPartial (  )  [inline]

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

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

Sends the field set to a socket.

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

ActionStatus BazisLib::Network::HTTP::CHTTPReplyHeader::TranslateResult ( std::string &  redirectURL  ) 

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


Member Data Documentation


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