<!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_http_frame.html"> <link rel="next" href="Framepp.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_headers</title> </head> <body> <div class="navbar"><a class="pre" href="Ocsigen_http_frame.html" title="Ocsigen_http_frame">Previous</a> <a class="up" href="index.html" title="Index">Up</a> <a class="post" href="Framepp.html" title="Framepp">Next</a> </div> <h1>Module <a href="type_Ocsigen_headers.html">Ocsigen_headers</a></h1> <pre><span class="keyword">module</span> Ocsigen_headers: <code class="code">sig</code> <a href="Ocsigen_headers.html">..</a> <code class="code">end</code></pre><div class="info module top"> Getting informations from HTTP header.<br> </div> <hr width="100%"> <br> This module uses the lowel level module Ocsigen_http_frame.Http_header. It is very basic and must be completed for exhaustiveness.<br> <pre><span id="VALfind"><span class="keyword">val</span> find</span> : <code class="type">string -> <a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string</code></pre><div class="info "> find one of the values bound to <code class="code">name</code> in the HTTP headers of the frame. Raise <code class="code">Not_found</code> if it is not bound.<br> </div> <pre><span id="VALfind_all"><span class="keyword">val</span> find_all</span> : <code class="type">string -> <a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string list</code></pre><div class="info "> find all the values bound to <code class="code">name</code> in the HTTP headers of the frame. Raise <code class="code">Not_found</code> if it is not bound.<br> </div> <pre><span id="VALget_keepalive"><span class="keyword">val</span> get_keepalive</span> : <code class="type"><a href="Ocsigen_http_frame.Http_header.html#TYPEhttp_header">Ocsigen_http_frame.Http_header.http_header</a> -> bool</code></pre> <pre><span id="VALparse_cookies"><span class="keyword">val</span> parse_cookies</span> : <code class="type">string -> string Ocsigen_cookies.CookiesTable.t</code></pre> <pre><span id="VALparse_mime_type"><span class="keyword">val</span> parse_mime_type</span> : <code class="type">string -> string option * string option</code></pre> <pre><span id="VALget_host_from_host_header"><span class="keyword">val</span> get_host_from_host_header</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option * int option</code></pre> <pre><span id="VALget_user_agent"><span class="keyword">val</span> get_user_agent</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string</code></pre> <pre><span id="VALget_cookie_string"><span class="keyword">val</span> get_cookie_string</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option</code></pre> <pre><span id="VALget_if_modified_since"><span class="keyword">val</span> get_if_modified_since</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> float option</code></pre> <pre><span id="VALget_if_unmodified_since"><span class="keyword">val</span> get_if_unmodified_since</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> float option</code></pre> <pre><span id="VALget_if_none_match"><span class="keyword">val</span> get_if_none_match</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string list option</code></pre> <pre><span id="VALget_if_match"><span class="keyword">val</span> get_if_match</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string list option</code></pre> <pre><span id="VALget_content_type"><span class="keyword">val</span> get_content_type</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option</code></pre> <pre><span id="VALparse_content_type"><span class="keyword">val</span> parse_content_type</span> : <code class="type">string option -> ((string * string) * (string * string) list) option</code></pre> <pre><span id="VALget_content_length"><span class="keyword">val</span> get_content_length</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> int64 option</code></pre> <pre><span id="VALget_referer"><span class="keyword">val</span> get_referer</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option</code></pre> <pre><span id="VALget_referrer"><span class="keyword">val</span> get_referrer</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option</code></pre> <pre><span id="VALget_origin"><span class="keyword">val</span> get_origin</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option</code></pre> <pre><span id="VALget_access_control_request_method"><span class="keyword">val</span> get_access_control_request_method</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string option</code></pre> <pre><span id="VALget_access_control_request_headers"><span class="keyword">val</span> get_access_control_request_headers</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> string list option</code></pre> <pre><span id="VALget_accept"><span class="keyword">val</span> get_accept</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -><br> ((string option * string option) * float option * (string * string) list)<br> list</code></pre> <pre><span id="VALget_accept_charset"><span class="keyword">val</span> get_accept_charset</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> (string option * float option) list</code></pre> <pre><span id="VALget_accept_encoding"><span class="keyword">val</span> get_accept_encoding</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> (string option * float option) list</code></pre> <pre><span id="VALget_accept_language"><span class="keyword">val</span> get_accept_language</span> : <code class="type"><a href="Ocsigen_http_frame.html#TYPEt">Ocsigen_http_frame.t</a> -> (string * float option) list</code></pre></body></html>