diff options
Diffstat (limited to 'Doc/doxygen/html/_http_server_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_http_server_8h_source.html | 334 |
1 files changed, 0 insertions, 334 deletions
diff --git a/Doc/doxygen/html/_http_server_8h_source.html b/Doc/doxygen/html/_http_server_8h_source.html deleted file mode 100644 index 3092d65..0000000 --- a/Doc/doxygen/html/_http_server_8h_source.html +++ /dev/null @@ -1,334 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<title>Starshatter_Open: D:/SRC/StarshatterSVN/NetEx/HttpServer.h Source File</title> -<link href="tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="jquery.js"></script> -<script type="text/javascript" src="dynsections.js"></script> -<link href="navtree.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="resize.js"></script> -<script type="text/javascript" src="navtree.js"></script> -<script type="text/javascript"> - $(document).ready(initResizable); -</script> -<link href="search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="search/search.js"></script> -<script type="text/javascript"> - $(document).ready(function() { searchBox.OnSelectItem(0); }); -</script> -<link href="doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td style="padding-left: 0.5em;"> - <div id="projectname">Starshatter_Open - </div> - <div id="projectbrief">Open source Starshatter engine</div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.1 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "search",false,'Search'); -</script> - <div id="navrow1" class="tabs"> - <ul class="tablist"> - <li><a href="index.html"><span>Main Page</span></a></li> - <li><a href="annotated.html"><span>Classes</span></a></li> - <li class="current"><a href="files.html"><span>Files</span></a></li> - <li> - <div id="MSearchBox" class="MSearchBoxInactive"> - <span class="left"> - <img id="MSearchSelect" src="search/mag_sel.png" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - alt=""/> - <input type="text" id="MSearchField" value="Search" accesskey="S" - onfocus="searchBox.OnSearchFieldFocus(true)" - onblur="searchBox.OnSearchFieldFocus(false)" - onkeyup="searchBox.OnSearchFieldChange(event)"/> - </span><span class="right"> - <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> - </span> - </div> - </li> - </ul> - </div> - <div id="navrow2" class="tabs2"> - <ul class="tablist"> - <li><a href="files.html"><span>File List</span></a></li> - <li><a href="globals.html"><span>File Members</span></a></li> - </ul> - </div> -</div><!-- top --> -<div id="side-nav" class="ui-resizable side-nav-resizable"> - <div id="nav-tree"> - <div id="nav-tree-contents"> - </div> - </div> - <div id="splitbar" style="-moz-user-select:none;" - class="ui-resizable-handle"> - </div> -</div> -<script type="text/javascript"> -$(document).ready(function(){initNavTree('_http_server_8h.html','');}); -</script> -<div id="doc-content"> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div class="header"> - <div class="headertitle"> -<div class="title">HttpServer.h</div> </div> -</div><!--header--> -<div class="contents"> -<a href="_http_server_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Project nGenEx</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> -<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2004. All Rights Reserved.</span></div> -<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: NetEx.lib</span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: HttpServer.h</span></div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Network Server Pump for HTTP Server</span></div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> </div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#ifndef HttpServer_h</span></div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span><span class="preprocessor">#define HttpServer_h</span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"></span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_net_server_8h.html">NetServer.h</a>"</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="keyword">class </span><a class="code" href="class_http_param.html">HttpParam</a>;</div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="keyword">class </span><a class="code" href="class_http_request.html">HttpRequest</a>;</div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">class </span><a class="code" href="class_http_response.html">HttpResponse</a>;</div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> -<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="class_http_server.html"> 29</a></span> <span class="keyword">class </span><a class="code" href="class_http_server.html">HttpServer</a> : <span class="keyword">public</span> <a class="code" href="class_net_server.html">NetServer</a></div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="class_http_server.html#ab9a02e60f407000fb1e9d3a1389bc11c"> 32</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_http_server.html#ab9a02e60f407000fb1e9d3a1389bc11c">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"HttpServer"</span>; }</div> -<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <a class="code" href="class_http_server.html#a2e12efd72ca52bcc5336f0b045256298">HttpServer</a>(WORD port, <span class="keywordtype">int</span> <a class="code" href="class_net_server.html#a7963898b65f62d6e85e3222bffd99943">poolsize</a>=1);</div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keyword">virtual</span> <a class="code" href="class_http_server.html#a5e9887bc9a815fc4b2b506a335d916af">~HttpServer</a>();</div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> -<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="class_http_server.html#a7b2581e87a58b3297e75cb648301668a"> 37</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_http_server.html#a7b2581e87a58b3297e75cb648301668a">operator == </a>(<span class="keyword">const</span> <a class="code" href="class_http_server.html">HttpServer</a>& l)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_net_server.html#a1c806cfd5c90a9ca2ca33b835ffe62c3">addr</a> == l.<a class="code" href="class_net_server.html#a1c806cfd5c90a9ca2ca33b835ffe62c3">addr</a>; }</div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <span class="keyword">virtual</span> <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_server.html#aed2cb3328abd6d5858df126130cc7c31">ProcessRequest</a>(<a class="code" href="class_text.html">Text</a> request, <span class="keyword">const</span> <a class="code" href="class_net_addr.html">NetAddr</a>& <a class="code" href="class_net_server.html#a1c806cfd5c90a9ca2ca33b835ffe62c3">addr</a>);</div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <span class="keyword">virtual</span> <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_server.html#a585e21fefb72925247d21d8322fd265c">DefaultResponse</a>();</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keyword">virtual</span> <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_server.html#aa2f077f45c71e0b9a7ff446e3cf19ed2">ErrorResponse</a>();</div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_http_server.html#a9a60dd0a125736d3bc1c1b6e1803a21e">DoGet</a>(<a class="code" href="class_http_request.html">HttpRequest</a>& request, <a class="code" href="class_http_response.html">HttpResponse</a>& response);</div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_http_server.html#aa13fbe3e5167f81bc0c4bf86c689b1e5">DoPost</a>(<a class="code" href="class_http_request.html">HttpRequest</a>& request, <a class="code" href="class_http_response.html">HttpResponse</a>& response);</div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_http_server.html#a742caa5d9116dd8924e38af563287f24">DoHead</a>(<a class="code" href="class_http_request.html">HttpRequest</a>& request, <a class="code" href="class_http_response.html">HttpResponse</a>& response);</div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div> -<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">virtual</span> <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_server.html#a36f23656c2928574489bd6234dade43d">GetServerName</a>();</div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_http_server.html#a43681d0ce22c826b3d9a0479f38b76f3">SetServerName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> -<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="keyword">protected</span>:</div> -<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="class_http_server.html#a2a07195f5292b20a56be72a318c65f51"> 51</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_server.html#a2a07195f5292b20a56be72a318c65f51">http_server_name</a>;</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> };</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> -<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="class_http_param.html"> 56</a></span> <span class="keyword">class </span><a class="code" href="class_http_param.html">HttpParam</a></div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="class_http_param.html#ac03cada490aa7e93cf8684ac519105ef"> 59</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_http_param.html#ac03cada490aa7e93cf8684ac519105ef">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"HttpParam"</span>; }</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div> -<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="class_http_param.html#a6025550cdcf21e6dfb3cdc977ec39976"> 61</a></span>  <a class="code" href="class_http_param.html#a6025550cdcf21e6dfb3cdc977ec39976">HttpParam</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* n, <span class="keyword">const</span> <span class="keywordtype">char</span>* v) : <a class="code" href="class_http_param.html#a1a2fea39aa2c042d0dff83ae90eb4dd9">name</a>(n), <a class="code" href="class_http_param.html#abe46a2c116c0caf1f6575f864488a9c5">value</a>(v) { }</div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div> -<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="class_http_param.html#a1dd485f42e9e39966c6ef4fe8d4100be"> 63</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_http_param.html#a1dd485f42e9e39966c6ef4fe8d4100be">operator == </a>(<span class="keyword">const</span> <a class="code" href="class_http_param.html">HttpParam</a>& p)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_http_param.html#a1a2fea39aa2c042d0dff83ae90eb4dd9">name</a> == p.<a class="code" href="class_http_param.html#a1a2fea39aa2c042d0dff83ae90eb4dd9">name</a>; }</div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div> -<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="class_http_param.html#a1a2fea39aa2c042d0dff83ae90eb4dd9"> 65</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_param.html#a1a2fea39aa2c042d0dff83ae90eb4dd9">name</a>;</div> -<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="class_http_param.html#abe46a2c116c0caf1f6575f864488a9c5"> 66</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_param.html#abe46a2c116c0caf1f6575f864488a9c5">value</a>;</div> -<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> };</div> -<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> -<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> </div> -<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="class_http_request.html"> 71</a></span> <span class="keyword">class </span><a class="code" href="class_http_request.html">HttpRequest</a></div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="class_http_request.html#a0eaa04e6938530fed1cef99b07f25f2b"> 74</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_http_request.html#a0eaa04e6938530fed1cef99b07f25f2b">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"HttpRequest"</span>; }</div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> </div> -<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528"> 76</a></span>  <span class="keyword">enum</span> <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528">METHOD</a> {</div> -<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a62a1cc3708b8f2dfaf952c261eb0e9f6"> 77</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a62a1cc3708b8f2dfaf952c261eb0e9f6">HTTP_OPTIONS</a>,</div> -<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528ab17ba709f7422368c227c166e4908537"> 78</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528ab17ba709f7422368c227c166e4908537">HTTP_GET</a>,</div> -<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a2a2fdac4a1ae3e6ed824936f409d3a35"> 79</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a2a2fdac4a1ae3e6ed824936f409d3a35">HTTP_HEAD</a>,</div> -<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a858634fee10b1fa2917ddbbcc3b8ad5b"> 80</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a858634fee10b1fa2917ddbbcc3b8ad5b">HTTP_POST</a>,</div> -<div class="line"><a name="l00081"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a60b041db9bbe6588dac672c55cd0a573"> 81</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a60b041db9bbe6588dac672c55cd0a573">HTTP_PUT</a>,</div> -<div class="line"><a name="l00082"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a5c311c34bfb174bc71c24cb56ac1e99a"> 82</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a5c311c34bfb174bc71c24cb56ac1e99a">HTTP_DELETE</a>,</div> -<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a27f3accf9fb3eba54043748cc65db749"> 83</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a27f3accf9fb3eba54043748cc65db749">HTTP_TRACE</a>,</div> -<div class="line"><a name="l00084"></a><span class="lineno"><a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a3c2df713960bba43585ec4ccb5d38e47"> 84</a></span>  <a class="code" href="class_http_request.html#ac635e02d7ff43e3260bd88810e40b528a3c2df713960bba43585ec4ccb5d38e47">HTTP_CONNECT</a></div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  };</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="class_http_request.html#ab4a68ee2b77a6b9183922299a0fc03ff">HttpRequest</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* request=0);</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_http_request.html#adfc7ae561e6ba03d21890ee1855df72b">~HttpRequest</a>();</div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <span class="keyword">operator</span> <a class="code" href="class_text.html">Text</a>();</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> </div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a9427774765cf6c0cdb7163fd387d591d">ParseRequest</a>(<a class="code" href="class_text.html">Text</a> request);</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a8991d3d8e5881cab2b74e834aa27e5b5">ParseCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* param);</div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> -<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="class_http_request.html#a998243bf8bfcf4b7939b8ac8c54c5a22"> 95</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_http_request.html#a998243bf8bfcf4b7939b8ac8c54c5a22">Method</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> method; }</div> -<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_http_request.html#a0cacac7e90571fb2506fc17777acbbd0"> 96</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#a0cacac7e90571fb2506fc17777acbbd0">URI</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> uri; }</div> -<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_http_request.html#adda4c81ef05b0faba9f6e88220cb66ae"> 97</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#adda4c81ef05b0faba9f6e88220cb66ae">Content</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> content; }</div> -<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_http_request.html#a1617442c52c52f6090e9a5997c87caec"> 98</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#a1617442c52c52f6090e9a5997c87caec">RequestLine</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> request_line; }</div> -<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> -<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_http_request.html#a51a9cd264b40f8f90ddaf160e69307cb"> 100</a></span>  <a class="code" href="class_list.html">List<HttpParam></a>& <a class="code" href="class_http_request.html#a51a9cd264b40f8f90ddaf160e69307cb">GetQuery</a>() { <span class="keywordflow">return</span> query; }</div> -<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="class_http_request.html#ab7135444c787e48bedd6b5e1faf8e8be"> 101</a></span>  <a class="code" href="class_list.html">List<HttpParam></a>& <a class="code" href="class_http_request.html#ab7135444c787e48bedd6b5e1faf8e8be">GetHeaders</a>() { <span class="keywordflow">return</span> headers; }</div> -<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="class_http_request.html#a13f0bc3d1031983d27339aaf0287402f"> 102</a></span>  <a class="code" href="class_list.html">List<HttpParam></a>& <a class="code" href="class_http_request.html#a13f0bc3d1031983d27339aaf0287402f">GetCookies</a>() { <span class="keywordflow">return</span> cookies; }</div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div> -<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="class_http_request.html#a5845cefb83443b39f86816dbe340362a"> 104</a></span>  <a class="code" href="class_net_addr.html">NetAddr</a> <a class="code" href="class_http_request.html#a5845cefb83443b39f86816dbe340362a">GetClientAddr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> client_addr; }</div> -<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_http_request.html#a59f9c48c9e08e63ae238011cf9b63943"> 105</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a59f9c48c9e08e63ae238011cf9b63943">SetClientAddr</a>(<span class="keyword">const</span> <a class="code" href="class_net_addr.html">NetAddr</a>& a) { client_addr = a; }</div> -<div class="line"><a name="l00106"></a><span class="lineno"> 106</span> </div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#aa929151683152eaa1cdd8987d6db43aa">GetParam</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div> -<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#a60571599794e74117d1619476687d2af">GetHeader</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a53d711ecc4748e88e68b66abff8c6b9c">SetHeader</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a63a5135af0728bf4a3aa9fe667ef496f">AddHeader</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#a85432a2e0b881a57dc244238befde1e5">GetCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a8523a2a25f7624c4cf65876daa1e1b7f">SetCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_request.html#a93178bb194aebd846be27d6916787b5f">AddCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div> -<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#a7765886a5938f9dc4f4ef62c43885467">DecodeParam</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <span class="keyword">static</span> <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_request.html#a685e7b75764ab36a284129e33163e89d">EncodeParam</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div> -<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">private</span>:</div> -<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <span class="keywordtype">int</span> method;</div> -<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <a class="code" href="class_text.html">Text</a> uri;</div> -<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  <a class="code" href="class_text.html">Text</a> content;</div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="class_text.html">Text</a> request_line;</div> -<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="class_net_addr.html">NetAddr</a> client_addr;</div> -<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div> -<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <a class="code" href="class_list.html">List<HttpParam></a> query;</div> -<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  <a class="code" href="class_list.html">List<HttpParam></a> headers;</div> -<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <a class="code" href="class_list.html">List<HttpParam></a> cookies;</div> -<div class="line"><a name="l00129"></a><span class="lineno"> 129</span> };</div> -<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div> -<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> <span class="comment">// +-------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div> -<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="class_http_response.html"> 133</a></span> <span class="keyword">class </span><a class="code" href="class_http_response.html">HttpResponse</a></div> -<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> {</div> -<div class="line"><a name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00136"></a><span class="lineno"><a class="code" href="class_http_response.html#abed2ba65184c23d1b9841668684d58a6"> 136</a></span>  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_http_response.html#abed2ba65184c23d1b9841668684d58a6">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">"HttpResponse"</span>; }</div> -<div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div> -<div class="line"><a name="l00138"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dd"> 138</a></span>  <span class="keyword">enum</span> <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dd">STATUS</a> {</div> -<div class="line"><a name="l00139"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaab4d8637bb40d2975eeb99a8a46b6eea"> 139</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaab4d8637bb40d2975eeb99a8a46b6eea">SC_CONTINUE</a> = 100,</div> -<div class="line"><a name="l00140"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddae6bf2f422f518485e6e8f71978f4bcdd"> 140</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddae6bf2f422f518485e6e8f71978f4bcdd">SC_SWITCHING_PROTOCOLS</a> = 101,</div> -<div class="line"><a name="l00141"></a><span class="lineno"> 141</span> </div> -<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda87c4314976dd0cb09e2e87a70f3e42a3"> 142</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda87c4314976dd0cb09e2e87a70f3e42a3">SC_OK</a> = 200,</div> -<div class="line"><a name="l00143"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda770ea3531973d0c65f38bb4e1432e85a"> 143</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda770ea3531973d0c65f38bb4e1432e85a">SC_CREATED</a> = 201,</div> -<div class="line"><a name="l00144"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda7aaddadee4fd138453c0ee7cfc632936"> 144</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda7aaddadee4fd138453c0ee7cfc632936">SC_ACCEPTED</a> = 202,</div> -<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda9fe82318e4bc87b8a37ec3a9d002e85e"> 145</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda9fe82318e4bc87b8a37ec3a9d002e85e">SC_NON_AUTHORITATIVE</a> = 203,</div> -<div class="line"><a name="l00146"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda1dcc2bc58f6f550800779c0d24a081a6"> 146</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda1dcc2bc58f6f550800779c0d24a081a6">SC_NO_CONTENT</a> = 204,</div> -<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddac81bf88e5e3732badd2ff2bc497e9755"> 147</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddac81bf88e5e3732badd2ff2bc497e9755">SC_RESET_CONTENT</a> = 205,</div> -<div class="line"><a name="l00148"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda95fe383778c5b28b21474af0884c2b40"> 148</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda95fe383778c5b28b21474af0884c2b40">SC_PARTIAL_CONTENT</a> = 206,</div> -<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div> -<div class="line"><a name="l00150"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddac2670790471b82af740aa16d5b6b0120"> 150</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddac2670790471b82af740aa16d5b6b0120">SC_MULTIPLE_CHOICES</a> = 300,</div> -<div class="line"><a name="l00151"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda9ed115512ba0a486cc01bd161c66f3f7"> 151</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda9ed115512ba0a486cc01bd161c66f3f7">SC_MOVED_PERMANENTLY</a> = 301,</div> -<div class="line"><a name="l00152"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda0cb6efe285a6e1c7e7382206e501e659"> 152</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda0cb6efe285a6e1c7e7382206e501e659">SC_FOUND</a> = 302,</div> -<div class="line"><a name="l00153"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda98e2e62df4ff1b8adc2a7a60ac60df9c"> 153</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda98e2e62df4ff1b8adc2a7a60ac60df9c">SC_SEE_OTHER</a> = 303,</div> -<div class="line"><a name="l00154"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddab13da0e516b2afab36b902453ef906ca"> 154</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddab13da0e516b2afab36b902453ef906ca">SC_NOT_MODIFIED</a> = 304,</div> -<div class="line"><a name="l00155"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda3118ccb66d12b21d07501505682c1179"> 155</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda3118ccb66d12b21d07501505682c1179">SC_USE_PROXY</a> = 305,</div> -<div class="line"><a name="l00156"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddae59249c17524161787f4ad665f4c2144"> 156</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddae59249c17524161787f4ad665f4c2144">SC_TEMPORARY_REDIRECT</a> = 307,</div> -<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> </div> -<div class="line"><a name="l00158"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda84847ae31e2adc41a0ee68f81f902196"> 158</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda84847ae31e2adc41a0ee68f81f902196">SC_BAD_REQUEST</a> = 400,</div> -<div class="line"><a name="l00159"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddac10286d2aa4e000c7f3fa4437cba4c3a"> 159</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddac10286d2aa4e000c7f3fa4437cba4c3a">SC_UNAUTHORIZED</a> = 401,</div> -<div class="line"><a name="l00160"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda3af6ff72f6512cc7162d37597948c124"> 160</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda3af6ff72f6512cc7162d37597948c124">SC_PAYMENT_REQUIRED</a> = 402,</div> -<div class="line"><a name="l00161"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda1933b1c30891cc8cb3e243ff6531e4fa"> 161</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda1933b1c30891cc8cb3e243ff6531e4fa">SC_FORBIDDEN</a> = 403,</div> -<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddab8d9fae3beef6efce8124b286b91f80f"> 162</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddab8d9fae3beef6efce8124b286b91f80f">SC_NOT_FOUND</a> = 404,</div> -<div class="line"><a name="l00163"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda0064079b1bb70e5aa81c3e59c5a08182"> 163</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda0064079b1bb70e5aa81c3e59c5a08182">SC_METHOD_NOT_ALLOWED</a> = 405,</div> -<div class="line"><a name="l00164"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda76586a8562a845a47fcfc782b075c91d"> 164</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda76586a8562a845a47fcfc782b075c91d">SC_NOT_ACCEPTABLE</a> = 406,</div> -<div class="line"><a name="l00165"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda7a8dc1214a4b33f0a963eb0ed2c3d943"> 165</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda7a8dc1214a4b33f0a963eb0ed2c3d943">SC_PROXY_AUTH_REQ</a> = 407,</div> -<div class="line"><a name="l00166"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda188361a0c2a9a6ed9136054a2fdc8dcf"> 166</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda188361a0c2a9a6ed9136054a2fdc8dcf">SC_REQUEST_TIME_OUT</a> = 408,</div> -<div class="line"><a name="l00167"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddadb0a90ae15e2fe04b5af580fab728641"> 167</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddadb0a90ae15e2fe04b5af580fab728641">SC_CONFLICT</a> = 409,</div> -<div class="line"><a name="l00168"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda761093fa04a2e616560f264d0060358d"> 168</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda761093fa04a2e616560f264d0060358d">SC_GONE</a> = 410,</div> -<div class="line"><a name="l00169"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda036d75020993ac91ed32fc9bb39513c4"> 169</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda036d75020993ac91ed32fc9bb39513c4">SC_LENGTH_REQUIRED</a> = 411,</div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div> -<div class="line"><a name="l00171"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddade807202e729f8cb3937cc3cbe31eff9"> 171</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddade807202e729f8cb3937cc3cbe31eff9">SC_SERVER_ERROR</a> = 500,</div> -<div class="line"><a name="l00172"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaee8ed635fbaa928caab8e70307170f51"> 172</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaee8ed635fbaa928caab8e70307170f51">SC_NOT_IMPLEMENTED</a> = 501,</div> -<div class="line"><a name="l00173"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaa67ae063523877e051a6bf347bb23ee3"> 173</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaa67ae063523877e051a6bf347bb23ee3">SC_BAD_GATEWAY</a> = 502,</div> -<div class="line"><a name="l00174"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddad71e17281aeb150db892959a1257828e"> 174</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddad71e17281aeb150db892959a1257828e">SC_SERVICE_UNAVAILABLE</a> = 503,</div> -<div class="line"><a name="l00175"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaa89b650925a14dc922f2bfb93a385586"> 175</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08ddaa89b650925a14dc922f2bfb93a385586">SC_GATEWAY_TIMEOUT</a> = 504,</div> -<div class="line"><a name="l00176"></a><span class="lineno"><a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda6c80617e4a3fc17b96d2519c92378dcf"> 176</a></span>  <a class="code" href="class_http_response.html#af85063c460600fc79b1f0de3456d08dda6c80617e4a3fc17b96d2519c92378dcf">SC_VERSION_NOT_SUPPORTED</a>= 505</div> -<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  };</div> -<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div> -<div class="line"><a name="l00179"></a><span class="lineno"> 179</span> </div> -<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="class_http_response.html#a42c5a3fb904532a4f85f3e9cdbb3f0a4">HttpResponse</a>(<span class="keywordtype">int</span> status=500, <span class="keyword">const</span> <span class="keywordtype">char</span>* content=0);</div> -<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <a class="code" href="class_http_response.html#a42c5a3fb904532a4f85f3e9cdbb3f0a4">HttpResponse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* response);</div> -<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="class_http_response.html#a7dc8102dcf63b07b9bf3c3dfed468857">~HttpResponse</a>();</div> -<div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div> -<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  <span class="keyword">operator</span> <a class="code" href="class_text.html">Text</a>();</div> -<div class="line"><a name="l00185"></a><span class="lineno"> 185</span> </div> -<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#acdc45fea33a3aaf9ed2f6c40f7a2a964">ParseResponse</a>(<a class="code" href="class_text.html">Text</a> request);</div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#a2b43bd2c316a2cecc9b8d57a904f9bde">ParseCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* param);</div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div> -<div class="line"><a name="l00189"></a><span class="lineno"><a class="code" href="class_http_response.html#a8e501d786ee6d9d423337086f0ba764d"> 189</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_http_response.html#a8e501d786ee6d9d423337086f0ba764d">Status</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> status; }</div> -<div class="line"><a name="l00190"></a><span class="lineno"><a class="code" href="class_http_response.html#a7d9c6e88914c855f0ad8eec94db55fea"> 190</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#a7d9c6e88914c855f0ad8eec94db55fea">SetStatus</a>(<span class="keywordtype">int</span> s) { status = s; }</div> -<div class="line"><a name="l00191"></a><span class="lineno"> 191</span> </div> -<div class="line"><a name="l00192"></a><span class="lineno"><a class="code" href="class_http_response.html#a45d2ac71a2034ba5b48af01f5d71dc94"> 192</a></span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_response.html#a45d2ac71a2034ba5b48af01f5d71dc94">Content</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> content; }</div> -<div class="line"><a name="l00193"></a><span class="lineno"><a class="code" href="class_http_response.html#a588f65eb7c3dd58560777745ace6bdb3"> 193</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#a588f65eb7c3dd58560777745ace6bdb3">SetContent</a>(<a class="code" href="class_text.html">Text</a> t) { content = t; }</div> -<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="class_http_response.html#ad531f9da5c688b1f9b108e3e15154b6c"> 194</a></span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#ad531f9da5c688b1f9b108e3e15154b6c">AddContent</a>(<a class="code" href="class_text.html">Text</a> t) { content += t; }</div> -<div class="line"><a name="l00195"></a><span class="lineno"> 195</span> </div> -<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="class_http_response.html#a67f180b5707527911cc954e13a42c686"> 196</a></span>  <a class="code" href="class_list.html">List<HttpParam></a>& <a class="code" href="class_http_response.html#a67f180b5707527911cc954e13a42c686">GetHeaders</a>() { <span class="keywordflow">return</span> headers; }</div> -<div class="line"><a name="l00197"></a><span class="lineno"><a class="code" href="class_http_response.html#a1bfcbb62fa971e984796bcf4e43ea415"> 197</a></span>  <a class="code" href="class_list.html">List<HttpParam></a>& <a class="code" href="class_http_response.html#a1bfcbb62fa971e984796bcf4e43ea415">GetCookies</a>() { <span class="keywordflow">return</span> cookies; }</div> -<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div> -<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_response.html#abcdf5a98b746b0e484c4996b178c1bd1">GetHeader</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> -<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#a713d293f7f2ca2ab04e405ea0c271ff3">SetHeader</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#ab4591f1266190343237ff1c5021d36d5">AddHeader</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <a class="code" href="class_text.html">Text</a> <a class="code" href="class_http_response.html#aa431b618fea7af0ae3a74a7828f8cd27">GetCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div> -<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#a4003e35e0cf1a110897e5e3fb99f22b3">SetCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#a0d83788eff92618c5c5573347c552238">AddCookie</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div> -<div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div> -<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordtype">void</span> <a class="code" href="class_http_response.html#ad613fd2bccaba1803022126f0682a2c0">SendRedirect</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* url);</div> -<div class="line"><a name="l00207"></a><span class="lineno"> 207</span> </div> -<div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">private</span>:</div> -<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <span class="keywordtype">int</span> status;</div> -<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="class_text.html">Text</a> content;</div> -<div class="line"><a name="l00211"></a><span class="lineno"> 211</span> </div> -<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <a class="code" href="class_list.html">List<HttpParam></a> headers;</div> -<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  <a class="code" href="class_list.html">List<HttpParam></a> cookies;</div> -<div class="line"><a name="l00214"></a><span class="lineno"> 214</span> };</div> -<div class="line"><a name="l00215"></a><span class="lineno"> 215</span> </div> -<div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div> -<div class="line"><a name="l00217"></a><span class="lineno"> 217</span> <span class="preprocessor">#endif HttpServer_h</span></div> -</div><!-- fragment --></div><!-- contents --> -</div><!-- doc-content --> -<!-- start footer part --> -<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> - <ul> - <li class="navelem"><a class="el" href="dir_abfa74b17cedb79c09123abbf53b6754.html">NetEx</a></li><li class="navelem"><a class="el" href="_http_server_8h.html">HttpServer.h</a></li> - <li class="footer">Generated on Tue Jun 5 2012 20:46:17 for Starshatter_Open by - <a href="http://www.doxygen.org/index.html"> - <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> - </ul> -</div> -</body> -</html> |