/usr/share/doc/ocsigenserver/api-html/Polytables.html is in ocsigenserver-doc 2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Ocsigen_loader.html">
<link rel="next" href="Http_headers.html">
<link rel="Up" href="index.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Ocsigen_cache" rel="Chapter" href="Ocsigen_cache.html">
<link title="Ocsigen_lib_base" rel="Chapter" href="Ocsigen_lib_base.html">
<link title="Ocsigen_lib" rel="Chapter" href="Ocsigen_lib.html">
<link title="Ocsigen_config" rel="Chapter" href="Ocsigen_config.html">
<link title="Ocsigen_getcommandline" rel="Chapter" href="Ocsigen_getcommandline.html">
<link title="Ocsigen_messages" rel="Chapter" href="Ocsigen_messages.html">
<link title="Ocsigen_stream" rel="Chapter" href="Ocsigen_stream.html">
<link title="Ocsigen_loader" rel="Chapter" href="Ocsigen_loader.html">
<link title="Polytables" rel="Chapter" href="Polytables.html">
<link title="Http_headers" rel="Chapter" href="Http_headers.html">
<link title="Ocsigen_http_frame" rel="Chapter" href="Ocsigen_http_frame.html">
<link title="Ocsigen_headers" rel="Chapter" href="Ocsigen_headers.html">
<link title="Framepp" rel="Chapter" href="Framepp.html">
<link title="Ocsigen_http_com" rel="Chapter" href="Ocsigen_http_com.html">
<link title="Ocsigen_charset_mime" rel="Chapter" href="Ocsigen_charset_mime.html">
<link title="Ocsigen_senders" rel="Chapter" href="Ocsigen_senders.html">
<link title="Ocsigen_cookies" rel="Chapter" href="Ocsigen_cookies.html">
<link title="Ocsigen_extensions" rel="Chapter" href="Ocsigen_extensions.html">
<link title="Ocsigen_parseconfig" rel="Chapter" href="Ocsigen_parseconfig.html">
<link title="Ocsigen_http_client" rel="Chapter" href="Ocsigen_http_client.html">
<link title="Ocsigen_local_files" rel="Chapter" href="Ocsigen_local_files.html">
<link title="Ocsigen_server" rel="Chapter" href="Ocsigen_server.html">
<link title="Ocsigen_comet" rel="Chapter" href="Ocsigen_comet.html">
<link title="Accesscontrol" rel="Chapter" href="Accesscontrol.html">
<link title="Authbasic" rel="Chapter" href="Authbasic.html">
<link title="Ocsipersist" rel="Chapter" href="Ocsipersist.html"><title>Polytables</title>
</head>
<body>
<div class="navbar"><a href="Ocsigen_loader.html">Previous</a>
<a href="index.html">Up</a>
<a href="Http_headers.html">Next</a>
</div>
<center><h1>Module <a href="type_Polytables.html">Polytables</a></h1></center>
<br>
<pre><span class="keyword">module</span> Polytables: <code class="code">sig</code> <a href="Polytables.html">..</a> <code class="code">end</code></pre>Polymorphic tables (using Map)<br>
<b>Author(s):</b> Vincent Balat, Jérôme Vouillon<br>
<hr width="100%">
<br>
Warning: this module is not thread safe!<br>
<pre><span id="TYPEkey"><span class="keyword">type</span> <code class="type">'a</code> key</span> </pre>
<div class="info">
The type of key for a piece of data of type 'a<br>
</div>
<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<div class="info">
The type of tables<br>
</div>
<pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">unit -> <a href="Polytables.html#TYPEt">t</a></code></pre><div class="info">
creates a new table<br>
</div>
<pre><span id="VALmake_key"><span class="keyword">val</span> make_key</span> : <code class="type">unit -> 'a <a href="Polytables.html#TYPEkey">key</a></code></pre><div class="info">
create a new key for each data you want to save<br>
</div>
<pre><span id="VALset"><span class="keyword">val</span> set</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> key:'a <a href="Polytables.html#TYPEkey">key</a> -> value:'a -> unit</code></pre><div class="info">
<code class="code">set t k v</code> associates <code class="code">v</code> to <code class="code">k</code> in <code class="code">t</code><br>
</div>
<pre><span id="VALget"><span class="keyword">val</span> get</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> key:'a <a href="Polytables.html#TYPEkey">key</a> -> 'a</code></pre><div class="info">
<code class="code">get t k</code> returns the current binding of <code class="code">k</code> in <code class="code">t</code> or raises <code class="code">Not_found</code><br>
</div>
<pre><span id="VALremove"><span class="keyword">val</span> remove</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> key:'a <a href="Polytables.html#TYPEkey">key</a> -> unit</code></pre><div class="info">
<code class="code">remove t k</code> remove the current binding of <code class="code">k</code> in <code class="code">t</code> if it exists<br>
</div>
<pre><span id="VALclear"><span class="keyword">val</span> clear</span> : <code class="type">table:<a href="Polytables.html#TYPEt">t</a> -> unit</code></pre><div class="info">
<code class="code">clear t</code> remove all data from t<br>
</div>
</body></html>
|