Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

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 List of all members.

Public Methods

 HTTPStatusHeader (int status, const std::string &message)
 Create a new status header. More...

virtual ~HTTPStatusHeader ()

int getStatusCode () const
 Get the status code associated with this header. More...

virtual void render (std::ostream &out) const
 Write this HTTPStatusHeader to a stream. More...

Detailed Description

HTTP header to set a specific request status.

Definition at line 48 of file HTTPStatusHeader.h.

Constructor & Destructor Documentation

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

Create a new status header.

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

Member Function Documentation

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

Get the status code associated with this header.

The 3-digit status code of this header.

Definition at line 69 of file HTTPStatusHeader.h.

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

Write this HTTPStatusHeader to a stream.

out  The ostream to which to write.

Reimplemented from cgicc::HTTPHeader.

The documentation for this class was generated from the following file:
GNU cgicc - A C++ class library for writing CGI applications
Copyright © 1996 - 2002 Stephen F. Booth
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front Cover Texts, and with no Back-Cover Texts.
Documentation generated Sun Mar 17 16:40:58 2002 for cgicc by doxygen