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
|
<!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 Source File</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</h1><a href="http_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
00002 <span class="comment"> * Copyright (c) 2005, 2006 by KoanLogic s.r.l. <http://www.koanlogic.com></span>
00003 <span class="comment"> * All rights reserved.</span>
00004 <span class="comment"> *</span>
00005 <span class="comment"> * This file is part of KLone, and as such it is subject to the license stated</span>
00006 <span class="comment"> * in the LICENSE file which you have received as part of this distribution.</span>
00007 <span class="comment"> *</span>
00008 <span class="comment"> * $Id: http.h,v 1.10 2006/04/06 14:02:22 tat Exp $</span>
00009 <span class="comment"> */</span>
00010
00011 <span class="preprocessor">#ifndef _KLONE_HTTP_H_</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define _KLONE_HTTP_H_</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#include <u/libu.h></span>
00015
00016 <span class="preprocessor">#ifdef __cplusplus</span>
00017 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00018 <span class="preprocessor">#endif </span>
00019 <span class="preprocessor"></span>
00023 <span class="keyword">enum</span> {
00024 <a class="code" href="http_8h.html#a29a1">HTTP_STATUS_EMPTY</a> = 0,
00026 <a class="code" href="http_8h.html#a29a2">HTTP_STATUS_OK</a> = 200,
00028 <a class="code" href="http_8h.html#a29a3">HTTP_STATUS_CREATED</a> = 201,
00030 <a class="code" href="http_8h.html#a29a4">HTTP_STATUS_ACCEPTED</a> = 202,
00032 <a class="code" href="http_8h.html#a29a5">HTTP_STATUS_NO_CONTENT</a> = 204,
00034 <a class="code" href="http_8h.html#a29a6">HTTP_STATUS_MOVED_PERMANENTLY</a> = 301,
00036 <a class="code" href="http_8h.html#a29a7">HTTP_STATUS_MOVED_TEMPORARILY</a> = 302,
00038 <a class="code" href="http_8h.html#a29a8">HTTP_STATUS_NOT_MODIFIED</a> = 304,
00040 <a class="code" href="http_8h.html#a29a9">HTTP_STATUS_BAD_REQUEST</a> = 400,
00042 <a class="code" href="http_8h.html#a29a10">HTTP_STATUS_UNAUTHORIZED</a> = 401,
00044 <a class="code" href="http_8h.html#a29a11">HTTP_STATUS_FORBIDDEN</a> = 403,
00046 <a class="code" href="http_8h.html#a29a12">HTTP_STATUS_NOT_FOUND</a> = 404,
00048 <a class="code" href="http_8h.html#a29a13">HTTP_STATUS_LENGTH_REQUIRED</a> = 411,
00050 <a class="code" href="http_8h.html#a29a14">HTTP_STATUS_REQUEST_TOO_LARGE</a> = 413,
00052 <a class="code" href="http_8h.html#a29a15">HTTP_STATUS_INTERNAL_SERVER_ERROR</a> = 500,
00054 <a class="code" href="http_8h.html#a29a16">HTTP_STATUS_NOT_IMPLEMENTED</a> = 501,
00056 <a class="code" href="http_8h.html#a29a17">HTTP_STATUS_BAD_GATEWAY</a> = 502,
00058 <a class="code" href="http_8h.html#a29a18">HTTP_STATUS_SERVICE_UNAVAILABLE</a> = 503
00060 };
00061
<a name="l00063"></a><a class="code" href="http_8h.html#a30">00063</a> <span class="keyword">enum</span> <a class="code" href="http_8h.html#a30">http_method_e</a>
00064 {
00065 HM_UNKNOWN,
00066 HM_GET,
00067 HM_HEAD,
00068 HM_POST,
00069 HM_PUT,
00070 <a class="code" href="http_8h.html#a30a24">HM_DELETE</a>
00071 };
00072
00073 <span class="keyword">struct </span><a class="code" href="structhttp__s.html">http_s</a>;
<a name="l00074"></a><a class="code" href="http_8h.html#a0">00074</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structhttp__s.html">http_s</a> <a class="code" href="http_8h.html#a0">http_t</a>;
00075
00076 <span class="keyword">struct </span><a class="code" href="structsession__opt__s.html">session_opt_s</a>;
00077
00078 u_config_t *<a class="code" href="http_8h.html#a25">http_get_config</a>(http_t* http);
00079 <span class="keyword">struct </span><a class="code" href="structsession__opt__s.html">session_opt_s</a> *<a class="code" href="http_8h.html#a26">http_get_session_opt</a>(http_t* http);
00080
00081 <span class="keywordtype">int</span> <a class="code" href="http_8h.html#a27">http_alias_resolv</a>(http_t *h, <span class="keywordtype">char</span> *dst, <span class="keyword">const</span> <span class="keywordtype">char</span> *filename, size_t sz);
00082 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="http_8h.html#a28">http_get_status_desc</a>(<span class="keywordtype">int</span> status);
00083
00084 <span class="preprocessor">#ifdef __cplusplus</span>
00085 <span class="preprocessor"></span>}
00086 <span class="preprocessor">#endif </span>
00087 <span class="preprocessor"></span>
00088 <span class="preprocessor">#endif</span>
</pre></div><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>
|