<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en" dir="LTR"> <head> <!-- $Id: header.html,v 1.5 2004/06/12 01:58:25 sbooth Exp $ --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>cgicc: cgicc::HTTPResponseHeader Class Reference</title> <link rev="made" href="mailto:bug-cgicc@gnu.org" /> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="cgicc-doc.css" rel="stylesheet" type="text/css" /> </head> <body> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespacecgicc.html">cgicc</a>::<a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> </div> </div> <div class="contents"> <h1>cgicc::HTTPResponseHeader Class Reference</h1><!-- doxytag: class="cgicc::HTTPResponseHeader" --><!-- doxytag: inherits="cgicc::MStreamable" -->Generic HTTP response header. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="HTTPResponseHeader_8h_source.html">cgicc/HTTPResponseHeader.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for cgicc::HTTPResponseHeader:</div> <div class="dynsection"> <p><center><img src="classcgicc_1_1HTTPResponseHeader.png" usemap="#cgicc::HTTPResponseHeader_map" border="0" alt=""></center> <map name="cgicc::HTTPResponseHeader_map"> <area href="classcgicc_1_1MStreamable.html" alt="cgicc::MStreamable" shape="rect" coords="0,0,177,24"> </map> </div> <p> <a href="classcgicc_1_1HTTPResponseHeader-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Constructor and Destructor</div></td></tr> <tr><td colspan="2"><div class="groupText"><br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#9494b7d2875f2d06a132e9a17b123ae1">HTTPResponseHeader</a> (const std::string &http_version, int status_code, const std::string &reason_phrase)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new HTTP response header. <a href="#9494b7d2875f2d06a132e9a17b123ae1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="96cc536d47de698e02eb2cf2c79824eb"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::~HTTPResponseHeader" ref="96cc536d47de698e02eb2cf2c79824eb" args="()" --> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#96cc536d47de698e02eb2cf2c79824eb">~HTTPResponseHeader</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Delete this <a class="el" href="classcgicc_1_1HTTPResponseHeader.html" title="Generic HTTP response header.">HTTPResponseHeader</a>. <br></td></tr> <tr><td colspan="2"><div class="groupHeader">Additional Header Management</div></td></tr> <tr><td colspan="2"><div class="groupText"><br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#2503b06c48acff4bd672df07ffd79397">addHeader</a> (const std::string &header)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a general, response, or entity header to this one. <a href="#2503b06c48acff4bd672df07ffd79397"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#1e65399b7a69cc8df6a2a942de628dd6">addHeader</a> (const std::string &name, const std::string &value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Add a general, response, or entity header to this one. <a href="#1e65399b7a69cc8df6a2a942de628dd6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const std::vector< std::string > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#835127bb16e1aa109a27d12dffa98103">getHeaders</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a list of all additional headers. <a href="#835127bb16e1aa109a27d12dffa98103"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Cookie Management</div></td></tr> <tr><td colspan="2"><div class="groupText"><br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#29c6a026d940cbc73d818d4aa11b2ead">setCookie</a> (const <a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a> &cookie)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set a cookie to go out with this <a class="el" href="classcgicc_1_1HTTPResponseHeader.html" title="Generic HTTP response header.">HTTPResponseHeader</a>. <a href="#29c6a026d940cbc73d818d4aa11b2ead"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const std::vector< <a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#1144f1ff863f78969a560e28ff5fa6a8">getCookies</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get a list of all cookies associated with this header. <a href="#1144f1ff863f78969a560e28ff5fa6a8"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Accessor methods</div></td></tr> <tr><td colspan="2"><div class="groupText">Retrieve information on the header <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#724aff794fea3053dc47777dc3480f4c">getHTTPVersion</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the HTTP version. <a href="#724aff794fea3053dc47777dc3480f4c"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#d52e1ccffce670689a741e230120473d">getStatusCode</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the 3-digit status code. <a href="#d52e1ccffce670689a741e230120473d"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#7ff84c5f7ca7d2cd17736cd19019535e">getReasonPhrase</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the reason phrase associated with the stats code. <a href="#7ff84c5f7ca7d2cd17736cd19019535e"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Mutator methods</div></td></tr> <tr><td colspan="2"><div class="groupText">Set information on the header <br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#a7485d03a97f44b630f8e5863fd46cdc">getHTTPVersion</a> (const std::string &http_version)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the HTTP version. <a href="#a7485d03a97f44b630f8e5863fd46cdc"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#447d42d435ca90775f907ab8a293f868">getStatusCode</a> (int status_code)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the 3-digit status code. <a href="#447d42d435ca90775f907ab8a293f868"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#23c087df3780aa9d623e0697be57cc4d">getReasonPhrase</a> (const std::string &reason_phrase)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the reason phrase associated with the stats code. <a href="#23c087df3780aa9d623e0697be57cc4d"></a><br></td></tr> <tr><td colspan="2"><div class="groupHeader">Inherited Methods</div></td></tr> <tr><td colspan="2"><div class="groupText"><br><br></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html#3e42c4c41cb8b808c3cd6bf4dedeefea">render</a> (std::ostream &out) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Write this object to a stream. <a href="#3e42c4c41cb8b808c3cd6bf4dedeefea"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Generic HTTP response header. <p> This class represents an HTTP response header as defined in section 6 of RFC 2616 (see <a href="http://www.w3.org">http://www.w3.org</a>)<p> All HTTP/1.1 reponses consist of an initial status line containing the HTTP version, a 3-digit status code, and a human-readable reason phrase explaining the status code.<p> The first digit of the Status-Code defines the class of response. The last two digits do not have any categorization role. There are 5 values for the first digit: <ul> <li> 1xx: Informational - Request received, continuing process </li> <li> 2xx: Success - The action was successfully received, understood, and accepted </li> <li> 3xx: Redirection - Further action must be taken in order to complete the request </li> <li> 4xx: Client Error - The request contains bad syntax or cannot be fulfilled </li> <li> 5xx: Server Error - The server failed to fulfill an apparently valid request</li> </ul> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00073">73</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="9494b7d2875f2d06a132e9a17b123ae1"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::HTTPResponseHeader" ref="9494b7d2875f2d06a132e9a17b123ae1" args="(const std::string &http_version, int status_code, const std::string &reason_phrase)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">cgicc::HTTPResponseHeader::HTTPResponseHeader </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>http_version</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>status_code</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>reason_phrase</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Create a new HTTP response header. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>http_version</em> </td><td>The HTTP version string, usually <code>HTTP/1.1</code> </td></tr> <tr><td valign="top"></td><td valign="top"><em>status_code</em> </td><td>The 3-digit HTTP status code </td></tr> <tr><td valign="top"></td><td valign="top"><em>reason_phrase</em> </td><td>A short textual description of the status code </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="1e65399b7a69cc8df6a2a942de628dd6"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::addHeader" ref="1e65399b7a69cc8df6a2a942de628dd6" args="(const std::string &name, const std::string &value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a>& cgicc::HTTPResponseHeader::addHeader </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Add a general, response, or entity header to this one. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name of the header element to add </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>The value of the header element </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to this </dd></dl> </div> </div><p> <a class="anchor" name="2503b06c48acff4bd672df07ffd79397"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::addHeader" ref="2503b06c48acff4bd672df07ffd79397" args="(const std::string &header)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a>& cgicc::HTTPResponseHeader::addHeader </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>header</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Add a general, response, or entity header to this one. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>header</em> </td><td>The text of the header to add </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to this </dd></dl> </div> </div><p> <a class="anchor" name="1144f1ff863f78969a560e28ff5fa6a8"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getCookies" ref="1144f1ff863f78969a560e28ff5fa6a8" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::vector<<a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a>>& cgicc::HTTPResponseHeader::getCookies </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get a list of all cookies associated with this header. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>All the cookies associated with this header </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00147">147</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="835127bb16e1aa109a27d12dffa98103"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getHeaders" ref="835127bb16e1aa109a27d12dffa98103" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::vector<std::string>& cgicc::HTTPResponseHeader::getHeaders </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get a list of all additional headers. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A list of all additional headers </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00128">128</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="a7485d03a97f44b630f8e5863fd46cdc"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getHTTPVersion" ref="a7485d03a97f44b630f8e5863fd46cdc" args="(const std::string &http_version)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a>& cgicc::HTTPResponseHeader::getHTTPVersion </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>http_version</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set the HTTP version. <p> The HTTP version is a string of the form <code>HTTP/1.1</code> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>http_version</em> </td><td>The HTTP version string, usually <code>HTTP/1.1</code> </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to this </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00204">204</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="724aff794fea3053dc47777dc3480f4c"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getHTTPVersion" ref="724aff794fea3053dc47777dc3480f4c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const std::string& cgicc::HTTPResponseHeader::getHTTPVersion </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the HTTP version. <p> The HTTP version is a string of the form <code>HTTP/1.1</code> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The HTTP version </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00165">165</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="23c087df3780aa9d623e0697be57cc4d"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getReasonPhrase" ref="23c087df3780aa9d623e0697be57cc4d" args="(const std::string &reason_phrase)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a>& cgicc::HTTPResponseHeader::getReasonPhrase </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"> <em>reason_phrase</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the reason phrase associated with the stats code. <p> The reason phrase is a human-readable interpretation of the status code <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>reason_phrase</em> </td><td>A short textual description of the status code </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to this </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00226">226</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="7ff84c5f7ca7d2cd17736cd19019535e"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getReasonPhrase" ref="7ff84c5f7ca7d2cd17736cd19019535e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string cgicc::HTTPResponseHeader::getReasonPhrase </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the reason phrase associated with the stats code. <p> The reason phrase is a human-readable interpretation of the status code <dl class="return" compact><dt><b>Returns:</b></dt><dd>The reason phrase </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00185">185</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="447d42d435ca90775f907ab8a293f868"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getStatusCode" ref="447d42d435ca90775f907ab8a293f868" args="(int status_code)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a>& cgicc::HTTPResponseHeader::getStatusCode </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>status_code</em> </td> <td> ) </td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the 3-digit status code. <p> The 3-digit status code indicates the disposition of the response. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>status_code</em> </td><td>The 3-digit HTTP status code </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>A reference to this </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00215">215</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="d52e1ccffce670689a741e230120473d"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::getStatusCode" ref="d52e1ccffce670689a741e230120473d" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int cgicc::HTTPResponseHeader::getStatusCode </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the 3-digit status code. <p> The 3-digit status code indicates the disposition of the response. <dl class="return" compact><dt><b>Returns:</b></dt><dd>The 3-digit status code </dd></dl> <p>Definition at line <a class="el" href="HTTPResponseHeader_8h_source.html#l00175">175</a> of file <a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a>.</p> </div> </div><p> <a class="anchor" name="3e42c4c41cb8b808c3cd6bf4dedeefea"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::render" ref="3e42c4c41cb8b808c3cd6bf4dedeefea" args="(std::ostream &out) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void cgicc::HTTPResponseHeader::render </td> <td>(</td> <td class="paramtype">std::ostream & </td> <td class="paramname"> <em>out</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Write this object to a stream. <p> Subclasses must implement this function. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>out</em> </td><td>The ostream to which to write. </td></tr> </table> </dl> <p>Implements <a class="el" href="classcgicc_1_1MStreamable.html#6a4ae7e9c578b44eebf0f04341be74ab">cgicc::MStreamable</a>.</p> </div> </div><p> <a class="anchor" name="29c6a026d940cbc73d818d4aa11b2ead"></a><!-- doxytag: member="cgicc::HTTPResponseHeader::setCookie" ref="29c6a026d940cbc73d818d4aa11b2ead" args="(const HTTPCookie &cookie)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classcgicc_1_1HTTPResponseHeader.html">HTTPResponseHeader</a>& cgicc::HTTPResponseHeader::setCookie </td> <td>(</td> <td class="paramtype">const <a class="el" href="classcgicc_1_1HTTPCookie.html">HTTPCookie</a> & </td> <td class="paramname"> <em>cookie</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set a cookie to go out with this <a class="el" href="classcgicc_1_1HTTPResponseHeader.html" title="Generic HTTP response header.">HTTPResponseHeader</a>. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>cookie</em> </td><td>The <a class="el" href="classcgicc_1_1HTTPCookie.html" title="An HTTP cookie.">HTTPCookie</a> to set </td></tr> </table> </dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="HTTPResponseHeader_8h_source.html">HTTPResponseHeader.h</a></ul> </div> <!-- $Id: footer.html,v 1.7 2004/06/12 01:58:25 sbooth Exp $ --> <hr> <address><small> <a href="http://www.cgicc.org">GNU cgicc</a> - A C++ class library for writing CGI applications<br /> Copyright © 1996 - 2004 <a href="mailto:sboothATgnuDOTorg">Stephen F. Booth</a><br /> 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.<br /> Documentation generated Tue Jun 9 15:30:17 2009 for cgicc by <a HREF="http://www.doxygen.org/index.html">doxygen</a> 1.5.9 </small></address> </body> </html>