1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>KLone: http.h File Reference</title>
<link href="kl.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
<div class="nav">
<a class="el" href="dir_000002.html">klone</a></div>
<h1>http.h File Reference</h1>
<p>
<a href="http_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="structhttp__s.html">http_s</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="http_8h.html#a0">http_t</a></td></tr>
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom">{ <br>
<a class="el" href="http_8h.html#a29a1">HTTP_STATUS_EMPTY</a> = 0,
<a class="el" href="http_8h.html#a29a2">HTTP_STATUS_OK</a> = 200,
<a class="el" href="http_8h.html#a29a3">HTTP_STATUS_CREATED</a> = 201,
<a class="el" href="http_8h.html#a29a4">HTTP_STATUS_ACCEPTED</a> = 202,
<br>
<a class="el" href="http_8h.html#a29a5">HTTP_STATUS_NO_CONTENT</a> = 204,
<a class="el" href="http_8h.html#a29a6">HTTP_STATUS_MOVED_PERMANENTLY</a> = 301,
<a class="el" href="http_8h.html#a29a7">HTTP_STATUS_MOVED_TEMPORARILY</a> = 302,
<a class="el" href="http_8h.html#a29a8">HTTP_STATUS_NOT_MODIFIED</a> = 304,
<br>
<a class="el" href="http_8h.html#a29a9">HTTP_STATUS_BAD_REQUEST</a> = 400,
<a class="el" href="http_8h.html#a29a10">HTTP_STATUS_UNAUTHORIZED</a> = 401,
<a class="el" href="http_8h.html#a29a11">HTTP_STATUS_FORBIDDEN</a> = 403,
<a class="el" href="http_8h.html#a29a12">HTTP_STATUS_NOT_FOUND</a> = 404,
<br>
<a class="el" href="http_8h.html#a29a13">HTTP_STATUS_LENGTH_REQUIRED</a> = 411,
<a class="el" href="http_8h.html#a29a14">HTTP_STATUS_REQUEST_TOO_LARGE</a> = 413,
<a class="el" href="http_8h.html#a29a15">HTTP_STATUS_INTERNAL_SERVER_ERROR</a> = 500,
<a class="el" href="http_8h.html#a29a16">HTTP_STATUS_NOT_IMPLEMENTED</a> = 501,
<br>
<a class="el" href="http_8h.html#a29a17">HTTP_STATUS_BAD_GATEWAY</a> = 502,
<a class="el" href="http_8h.html#a29a18">HTTP_STATUS_SERVICE_UNAVAILABLE</a> = 503
<br>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="http_8h.html#a30">http_method_e</a> { <br>
<a class="el" href="http_8h.html#a30a19">HM_UNKNOWN</a>,
<a class="el" href="http_8h.html#a30a20">HM_GET</a>,
<a class="el" href="http_8h.html#a30a21">HM_HEAD</a>,
<a class="el" href="http_8h.html#a30a22">HM_POST</a>,
<br>
<a class="el" href="http_8h.html#a30a23">HM_PUT</a>,
<a class="el" href="http_8h.html#a30a24">HM_DELETE</a>
<br>
}</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u_config_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="http_8h.html#a25">http_get_config</a> (<a class="el" href="structhttp__s.html">http_t</a> *http)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structsession__opt__s.html">session_opt_s</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="http_8h.html#a26">http_get_session_opt</a> (<a class="el" href="structhttp__s.html">http_t</a> *http)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="http_8h.html#a27">http_alias_resolv</a> (<a class="el" href="structhttp__s.html">http_t</a> *h, char *dst, const char *filename, size_t sz)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="http_8h.html#a28">http_get_status_desc</a> (int status)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
Definition in file <a class="el" href="http_8h-source.html">http.h</a>.<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="a0" doxytag="http.h::http_t"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">typedef struct <a class="el" href="structhttp__s.html">http_s</a> <a class="el" href="structhttp__s.html">http_t</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="http_8h-source.html#l00074">74</a> of file <a class="el" href="http_8h-source.html">http.h</a>.
<p>
Referenced by <a class="el" href="http_8c-source.html#l00091">http_alias_resolv()</a>, <a class="el" href="http_8c-source.html#l00547">http_backend_init()</a>, <a class="el" href="http_8c-source.html#l00510">http_backend_serve()</a>, <a class="el" href="http_8c-source.html#l00529">http_backend_term()</a>, <a class="el" href="http_8c-source.html#l00069">http_get_config()</a>, <a class="el" href="http_8c-source.html#l00062">http_get_session_opt()</a>, <a class="el" href="request_8c-source.html#l01527">request_create()</a>, <a class="el" href="request_8c-source.html#l00397">request_get_http()</a>, and <a class="el" href="response_8c-source.html#l00643">response_create()</a>. </td>
</tr>
</table>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="a29" doxytag="http.h::@17"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">anonymous enum </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
HTTP response codes <dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="a29a1" doxytag="HTTP_STATUS_EMPTY"></a>HTTP_STATUS_EMPTY</em> </td><td>
undefined status </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a2" doxytag="HTTP_STATUS_OK"></a>HTTP_STATUS_OK</em> </td><td>
request succeeded </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a3" doxytag="HTTP_STATUS_CREATED"></a>HTTP_STATUS_CREATED</em> </td><td>
fulfilled request resulting in creation of new resource </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a4" doxytag="HTTP_STATUS_ACCEPTED"></a>HTTP_STATUS_ACCEPTED</em> </td><td>
request accepted but processing not completed </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a5" doxytag="HTTP_STATUS_NO_CONTENT"></a>HTTP_STATUS_NO_CONTENT</em> </td><td>
no body returned </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a6" doxytag="HTTP_STATUS_MOVED_PERMANENTLY"></a>HTTP_STATUS_MOVED_PERMANENTLY</em> </td><td>
resource relocated permanently </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a7" doxytag="HTTP_STATUS_MOVED_TEMPORARILY"></a>HTTP_STATUS_MOVED_TEMPORARILY</em> </td><td>
resource relocated temporarily </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a8" doxytag="HTTP_STATUS_NOT_MODIFIED"></a>HTTP_STATUS_NOT_MODIFIED</em> </td><td>
GET request for unmodified document </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a9" doxytag="HTTP_STATUS_BAD_REQUEST"></a>HTTP_STATUS_BAD_REQUEST</em> </td><td>
syntax error </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a10" doxytag="HTTP_STATUS_UNAUTHORIZED"></a>HTTP_STATUS_UNAUTHORIZED</em> </td><td>
user authentication required </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a11" doxytag="HTTP_STATUS_FORBIDDEN"></a>HTTP_STATUS_FORBIDDEN</em> </td><td>
access to resource forbidden </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a12" doxytag="HTTP_STATUS_NOT_FOUND"></a>HTTP_STATUS_NOT_FOUND</em> </td><td>
nothing found at matching request URI </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a13" doxytag="HTTP_STATUS_LENGTH_REQUIRED"></a>HTTP_STATUS_LENGTH_REQUIRED</em> </td><td>
missing Content-Length header field </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a14" doxytag="HTTP_STATUS_REQUEST_TOO_LARGE"></a>HTTP_STATUS_REQUEST_TOO_LARGE</em> </td><td>
request PDU too big </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a15" doxytag="HTTP_STATUS_INTERNAL_SERVER_ERROR"></a>HTTP_STATUS_INTERNAL_SERVER_ERROR</em> </td><td>
unexpected condition caused an error </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a16" doxytag="HTTP_STATUS_NOT_IMPLEMENTED"></a>HTTP_STATUS_NOT_IMPLEMENTED</em> </td><td>
request method not supported </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a17" doxytag="HTTP_STATUS_BAD_GATEWAY"></a>HTTP_STATUS_BAD_GATEWAY</em> </td><td>
invalid response while acting as gateway or proxy </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a29a18" doxytag="HTTP_STATUS_SERVICE_UNAVAILABLE"></a>HTTP_STATUS_SERVICE_UNAVAILABLE</em> </td><td>
server unavailable due to temporary overloading or maintenance </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="http_8h-source.html#l00023">23</a> of file <a class="el" href="http_8h-source.html">http.h</a>. </td>
</tr>
</table>
<a class="anchor" name="a30" doxytag="http.h::http_method_e"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">enum <a class="el" href="http_8h.html#a30">http_method_e</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
HTTP Methods <dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="a30a19" doxytag="HM_UNKNOWN"></a>HM_UNKNOWN</em> </td><td>
unknown value </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a30a20" doxytag="HM_GET"></a>HM_GET</em> </td><td>
retrieve data at URI </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a30a21" doxytag="HM_HEAD"></a>HM_HEAD</em> </td><td>
~HM_GET with headers only </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a30a22" doxytag="HM_POST"></a>HM_POST</em> </td><td>
create new object subordinate to specified object </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a30a23" doxytag="HM_PUT"></a>HM_PUT</em> </td><td>
data in body is to be stored under URL </td></tr>
<tr><td valign="top"><em><a class="anchor" name="a30a24" doxytag="HM_DELETE"></a>HM_DELETE</em> </td><td>
deletion request at given URL </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="http_8h-source.html#l00063">63</a> of file <a class="el" href="http_8h-source.html">http.h</a>. </td>
</tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="a27" doxytag="http.h::http_alias_resolv"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int http_alias_resolv </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structhttp__s.html">http_t</a> * </td>
<td class="mdname" nowrap> <em>h</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>char * </td>
<td class="mdname" nowrap> <em>dst</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const char * </td>
<td class="mdname" nowrap> <em>filename</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t </td>
<td class="mdname" nowrap> <em>sz</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="http_8c-source.html#l00091">91</a> of file <a class="el" href="http_8c-source.html">http.c</a>.
<p>
References <a class="el" href="http__s_8h-source.html#l00026">http_s::config</a>, <a class="el" href="http__s_8h-source.html#l00034">http_s::dir_root</a>, and <a class="el" href="http_8h-source.html#l00074">http_t</a>. </td>
</tr>
</table>
<a class="anchor" name="a25" doxytag="http.h::http_get_config"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u_config_t* http_get_config </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structhttp__s.html">http_t</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>http</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="http_8c-source.html#l00069">69</a> of file <a class="el" href="http_8c-source.html">http.c</a>.
<p>
References <a class="el" href="http__s_8h-source.html#l00026">http_s::config</a>, and <a class="el" href="http_8h-source.html#l00074">http_t</a>. </td>
</tr>
</table>
<a class="anchor" name="a26" doxytag="http.h::http_get_session_opt"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">struct <a class="el" href="structsession__opt__s.html">session_opt_s</a>* http_get_session_opt </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="structhttp__s.html">http_t</a> * </td>
<td class="mdname1" valign="top" nowrap> <em>http</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="http_8c-source.html#l00062">62</a> of file <a class="el" href="http_8c-source.html">http.c</a>.
<p>
References <a class="el" href="http_8h-source.html#l00074">http_t</a>, <a class="el" href="http__s_8h-source.html#l00038">http_s::sess_opt</a>, and <a class="el" href="ses__prv_8h.html#a4">session_opt_t</a>. </td>
</tr>
</table>
<a class="anchor" name="a28" doxytag="http.h::http_get_status_desc"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">const char* http_get_status_desc </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">int </td>
<td class="mdname1" valign="top" nowrap> <em>status</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<p>
Definition at line <a class="el" href="http_8c-source.html#l00076">76</a> of file <a class="el" href="http_8c-source.html">http.c</a>.
<p>
Referenced by <a class="el" href="response_8c-source.html#l00296">response_get_max_header_size()</a>. </td>
</tr>
</table>
<hr>
<div>
<div style="text-align:left">
<a href="http://www.koanlogic.com/kl/cont/gb/html/products.html">←Products</a>
</div>
<div style="text-align:center;">
© 2005-2006 - <a href="http://www.koanlogic.com">KoanLogic S.r.l.</a> - All rights reserved
</div>
</div>
</body>
</html>
|