cgicc::HTTPStatusHeader Class Reference

HTTP header to set a specific request status. More...

#include <cgicc/HTTPStatusHeader.h>

Inheritance diagram for cgicc::HTTPStatusHeader:

cgicc::HTTPHeader cgicc::MStreamable

Public Member Functions

 HTTPStatusHeader (int status, const std::string &message)
 Create a new status header.
virtual ~HTTPStatusHeader ()
 Destructor.
int getStatusCode () const
 Get the status code associated with this header.
virtual void render (std::ostream &out) const
 Write this HTTPStatusHeader to a stream.

Detailed Description

HTTP header to set a specific request status.

Definition at line 50 of file HTTPStatusHeader.h.


Constructor & Destructor Documentation

cgicc::HTTPStatusHeader::HTTPStatusHeader ( int  status,
const std::string &  message 
)

Create a new status header.

Parameters:
status The 3-digit status code, for example 404.
message The message associated with the status code, for example "not found".

Definition at line 38 of file HTTPStatusHeader.cpp.

References HTTPStatusHeader().

Referenced by HTTPStatusHeader().


Member Function Documentation

int cgicc::HTTPStatusHeader::getStatusCode (  )  const [inline]

Get the status code associated with this header.

Returns:
The 3-digit status code of this header.

Definition at line 71 of file HTTPStatusHeader.h.

Referenced by render().

void cgicc::HTTPStatusHeader::render ( std::ostream &  out  )  const [virtual]

Write this HTTPStatusHeader to a stream.

Parameters:
out The ostream to which to write.

Implements cgicc::HTTPHeader.

Definition at line 48 of file HTTPStatusHeader.cpp.

References cgicc::HTTPHeader::getCookies(), cgicc::HTTPHeader::getData(), and getStatusCode().


The documentation for this class was generated from the following files:
Generated on Tue Jul 3 15:44:47 2007 for GNUCgicc by  doxygen 1.5.1