File: response_8h-source.html

package info (click to toggle)
klone 1.1.1.dfsg1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,480 kB
  • ctags: 4,238
  • sloc: ansic: 16,288; makefile: 384; sh: 351
file content (86 lines) | stat: -rw-r--r-- 7,710 bytes parent folder | download
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
<!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: response.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&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;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>response.h</h1><a href="response_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. &lt;http://www.koanlogic.com&gt;</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: response.h,v 1.11 2006/04/06 14:02:22 tat Exp $</span>
00009 <span class="comment"> */</span>
00010 
00011 <span class="preprocessor">#ifndef _KLONE_RESPONSE_H_</span>
00012 <span class="preprocessor"></span><span class="preprocessor">#define _KLONE_RESPONSE_H_</span>
00013 <span class="preprocessor"></span>
00014 <span class="preprocessor">#include &lt;<a class="code" href="io_8h.html">klone/io.h</a>&gt;</span>
00015 <span class="preprocessor">#include &lt;<a class="code" href="header_8h.html">klone/header.h</a>&gt;</span>
00016 <span class="preprocessor">#include &lt;<a class="code" href="http_8h.html">klone/http.h</a>&gt;</span>
00017 
00018 <span class="preprocessor">#ifdef __cplusplus</span>
00019 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
00020 <span class="preprocessor">#endif</span>
00021 <span class="preprocessor"></span>
00024 <span class="keyword">enum</span> { <a class="code" href="response_8h.html#a25a1">COOKIE_MAX_SIZE</a> = 4096 };
00025 
00026 <span class="keyword">struct </span>response_s;
<a name="l00027"></a><a class="code" href="response_8h.html#a0">00027</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>response_s <a class="code" href="response_8h.html#a0">response_t</a>;
00028 
00029 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga24">response_create</a>(<a class="code" href="structhttp__s.html">http_t</a> *http, response_t **prs);
00030 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga25">response_free</a>(response_t *rs);
00031 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga23">response_bind</a>(response_t *rs, <a class="code" href="structio__s.html">io_t</a> *);
00032 
00033 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga21">response_redirect</a>(response_t *rs, <span class="keyword">const</span> <span class="keywordtype">char</span> *url);
00034 
00035 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga22">response_set_status</a>(response_t *rs, <span class="keywordtype">int</span> code);
00036 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga18">response_get_status</a>(response_t *rs);
00037 <span class="keywordtype">void</span> <a class="code" href="group__response__t.html#ga6">response_set_method</a>(response_t *rs, <span class="keywordtype">int</span> method);
00038 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga7">response_get_method</a>(response_t *rs);
00039 
00040 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga2">response_enable_caching</a>(response_t *rs);
00041 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga1">response_disable_caching</a>(response_t *rs);
00042 
00043 <span class="keywordtype">void</span> <a class="code" href="group__response__t.html#ga8">response_set_cgi</a>(response_t *rs, <span class="keywordtype">int</span> cgi);
00044 
00045 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga11">response_print_header</a>(response_t *rs);
00046 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga10">response_print_header_to_io</a>(response_t *rs, <a class="code" href="structio__s.html">io_t</a> *io);
00047 size_t <a class="code" href="group__response__t.html#ga9">response_get_max_header_size</a>(response_t *rs);
00048 
00049 <a class="code" href="structio__s.html">io_t</a>* <a class="code" href="group__response__t.html#ga20">response_io</a>(response_t *rs);
00050 
00051 <a class="code" href="structheader__t.html">header_t</a>* <a class="code" href="group__response__t.html#ga19">response_get_header</a>(response_t *rs);
00052 
00053 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga12">response_set_field</a>(response_t *rs, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);
00054 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga14">response_set_content_type</a>(response_t *rs, <span class="keyword">const</span> <span class="keywordtype">char</span> *mime_type);
00055 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga17">response_set_content_length</a>(response_t *rs, size_t sz);
00056 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga0">response_set_content_encoding</a>(response_t *rs, <span class="keyword">const</span> <span class="keywordtype">char</span> *encoding);
00057 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga16">response_set_last_modified</a>(response_t *rs, time_t mtime);
00058 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga15">response_set_date</a>(response_t *rs, time_t now);
00059 
00060 <span class="keywordtype">int</span> <a class="code" href="group__response__t.html#ga3">response_set_cookie</a>(response_t *rs, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value,
00061     time_t expire, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> <span class="keywordtype">char</span> *domain, <span class="keywordtype">int</span> secure);
00062 
00063 <span class="preprocessor">#ifdef __cplusplus</span>
00064 <span class="preprocessor"></span>}
00065 <span class="preprocessor">#endif </span>
00066 <span class="preprocessor"></span>
00067 <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">&larr;Products</a>
  </div>
  <div style="text-align:center;">
    &copy; 2005-2006 - <a href="http://www.koanlogic.com">KoanLogic S.r.l.</a> - All rights reserved
  </div>
</div>

</body>
</html>