<!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_extensions.html"> <link rel="next" href="Ocsigen_http_client.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>Ocsigen_parseconfig</title> </head> <body> <div class="navbar"><a class="pre" href="Ocsigen_extensions.html" title="Ocsigen_extensions">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Ocsigen_http_client.html" title="Ocsigen_http_client">Next</a> </div> <h1>Module <a href="type_Ocsigen_parseconfig.html">Ocsigen_parseconfig</a></h1> <pre><span class="keyword">module</span> Ocsigen_parseconfig: <code class="code">sig</code> <a href="Ocsigen_parseconfig.html">..</a> <code class="code">end</code></pre><div class="info module top"> Config file parsing<br> </div> <hr width="100%"> <pre><span id="VALparse_size"><span class="keyword">val</span> parse_size</span> : <code class="type">string -> int64 option</code></pre><div class="info "> Parse a size ("infinity" or using SI or binary units, e.g. 10 10B 10o 10ko 10kB 10kiB 10MiB 10TB ...). Raises <code class="code">Failure "Ocsigen_parseconfig.parse_size"</code> in case of error.<br> </div> <pre><span id="VALparse_size_tag"><span class="keyword">val</span> parse_size_tag</span> : <code class="type">string -> string -> int64 option</code></pre><div class="info "> <code class="code">parse_size_tag tag s</code> parses a size (same syntax as <code class="code">parse_size</code>). In case of error, raises <code class="code">Ocsigen_config.Config_file_error m</code> where <code class="code">m</code> is an error message explaining that a size was expected in tag <code class="code"><tag></code>.<br> </div> <pre><span id="VALparse_string"><span class="keyword">val</span> parse_string</span> : <code class="type">Simplexmlparser.xml list -> string</code></pre><div class="info "> Parse a string (PCDATA) as XML content. Raises <code class="code">Failure "Ocsigen_parseconfig.parse_string"</code> in case of error.<br> </div> <pre><span id="VALparse_string_tag"><span class="keyword">val</span> parse_string_tag</span> : <code class="type">string -> Simplexmlparser.xml list -> string</code></pre><div class="info "> <code class="code">parse_string_tag tag s</code> parses a string (same syntax as <code class="code">parse_string</code>). In case of error, raises <code class="code">Ocsigen_config.Config_file_error m</code> where <code class="code">m</code> is an error message explaining that a string was expected in tag <code class="code"><tag></code>.<br> </div> <pre><span id="VALparse_host_field"><span class="keyword">val</span> parse_host_field</span> : <code class="type">string option -> <a href="Ocsigen_extensions.html#TYPEvirtual_hosts">Ocsigen_extensions.virtual_hosts</a></code></pre><div class="info "> Parses the <code class="code">hostfilter</code> field of the configuration file, which is a disjunction of possible hostnames (that can themselves contain wildcards)<br> </div> </body></html>