Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 535a7a10fe62254ee9ca7e6375f081a9 > files > 305

ocaml-ocamlnet-2.2.7-4mdv2008.1.x86_64.rpm

<!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="Up" href="Nethttp.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 attributes" rel=Appendix href="index_attributes.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 class types" rel=Appendix href="index_class_types.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="Uq_gtk" rel="Chapter" href="Uq_gtk.html">
<link title="Equeue" rel="Chapter" href="Equeue.html">
<link title="Unixqueue" rel="Chapter" href="Unixqueue.html">
<link title="Uq_engines" rel="Chapter" href="Uq_engines.html">
<link title="Uq_socks5" rel="Chapter" href="Uq_socks5.html">
<link title="Unixqueue_mt" rel="Chapter" href="Unixqueue_mt.html">
<link title="Equeue_intro" rel="Chapter" href="Equeue_intro.html">
<link title="Uq_ssl" rel="Chapter" href="Uq_ssl.html">
<link title="Uq_tcl" rel="Chapter" href="Uq_tcl.html">
<link title="Netcgi_common" rel="Chapter" href="Netcgi_common.html">
<link title="Netcgi" rel="Chapter" href="Netcgi.html">
<link title="Netcgi_ajp" rel="Chapter" href="Netcgi_ajp.html">
<link title="Netcgi_scgi" rel="Chapter" href="Netcgi_scgi.html">
<link title="Netcgi_cgi" rel="Chapter" href="Netcgi_cgi.html">
<link title="Netcgi_fcgi" rel="Chapter" href="Netcgi_fcgi.html">
<link title="Netcgi_dbi" rel="Chapter" href="Netcgi_dbi.html">
<link title="Netcgi1_compat" rel="Chapter" href="Netcgi1_compat.html">
<link title="Netcgi_test" rel="Chapter" href="Netcgi_test.html">
<link title="Netcgi_porting" rel="Chapter" href="Netcgi_porting.html">
<link title="Netcgi_plex" rel="Chapter" href="Netcgi_plex.html">
<link title="Http_client" rel="Chapter" href="Http_client.html">
<link title="Telnet_client" rel="Chapter" href="Telnet_client.html">
<link title="Ftp_data_endpoint" rel="Chapter" href="Ftp_data_endpoint.html">
<link title="Ftp_client" rel="Chapter" href="Ftp_client.html">
<link title="Nethttpd_types" rel="Chapter" href="Nethttpd_types.html">
<link title="Nethttpd_kernel" rel="Chapter" href="Nethttpd_kernel.html">
<link title="Nethttpd_reactor" rel="Chapter" href="Nethttpd_reactor.html">
<link title="Nethttpd_engine" rel="Chapter" href="Nethttpd_engine.html">
<link title="Nethttpd_services" rel="Chapter" href="Nethttpd_services.html">
<link title="Nethttpd_plex" rel="Chapter" href="Nethttpd_plex.html">
<link title="Nethttpd_intro" rel="Chapter" href="Nethttpd_intro.html">
<link title="Netplex_types" rel="Chapter" href="Netplex_types.html">
<link title="Netplex_mp" rel="Chapter" href="Netplex_mp.html">
<link title="Netplex_mt" rel="Chapter" href="Netplex_mt.html">
<link title="Netplex_log" rel="Chapter" href="Netplex_log.html">
<link title="Netplex_controller" rel="Chapter" href="Netplex_controller.html">
<link title="Netplex_container" rel="Chapter" href="Netplex_container.html">
<link title="Netplex_sockserv" rel="Chapter" href="Netplex_sockserv.html">
<link title="Netplex_workload" rel="Chapter" href="Netplex_workload.html">
<link title="Netplex_main" rel="Chapter" href="Netplex_main.html">
<link title="Netplex_config" rel="Chapter" href="Netplex_config.html">
<link title="Netplex_kit" rel="Chapter" href="Netplex_kit.html">
<link title="Rpc_netplex" rel="Chapter" href="Rpc_netplex.html">
<link title="Netplex_cenv" rel="Chapter" href="Netplex_cenv.html">
<link title="Netplex_intro" rel="Chapter" href="Netplex_intro.html">
<link title="Netshm" rel="Chapter" href="Netshm.html">
<link title="Netshm_data" rel="Chapter" href="Netshm_data.html">
<link title="Netshm_hashtbl" rel="Chapter" href="Netshm_hashtbl.html">
<link title="Netshm_array" rel="Chapter" href="Netshm_array.html">
<link title="Netshm_intro" rel="Chapter" href="Netshm_intro.html">
<link title="Netconversion" rel="Chapter" href="Netconversion.html">
<link title="Netchannels" rel="Chapter" href="Netchannels.html">
<link title="Netstream" rel="Chapter" href="Netstream.html">
<link title="Mimestring" rel="Chapter" href="Mimestring.html">
<link title="Netmime" rel="Chapter" href="Netmime.html">
<link title="Netsendmail" rel="Chapter" href="Netsendmail.html">
<link title="Neturl" rel="Chapter" href="Neturl.html">
<link title="Netaddress" rel="Chapter" href="Netaddress.html">
<link title="Netbuffer" rel="Chapter" href="Netbuffer.html">
<link title="Netdate" rel="Chapter" href="Netdate.html">
<link title="Netencoding" rel="Chapter" href="Netencoding.html">
<link title="Netulex" rel="Chapter" href="Netulex.html">
<link title="Netaccel" rel="Chapter" href="Netaccel.html">
<link title="Netaccel_link" rel="Chapter" href="Netaccel_link.html">
<link title="Nethtml" rel="Chapter" href="Nethtml.html">
<link title="Netstring_str" rel="Chapter" href="Netstring_str.html">
<link title="Netstring_pcre" rel="Chapter" href="Netstring_pcre.html">
<link title="Netstring_mt" rel="Chapter" href="Netstring_mt.html">
<link title="Netmappings" rel="Chapter" href="Netmappings.html">
<link title="Netaux" rel="Chapter" href="Netaux.html">
<link title="Nethttp" rel="Chapter" href="Nethttp.html">
<link title="Netchannels_tut" rel="Chapter" href="Netchannels_tut.html">
<link title="Netmime_tut" rel="Chapter" href="Netmime_tut.html">
<link title="Netsendmail_tut" rel="Chapter" href="Netsendmail_tut.html">
<link title="Netulex_tut" rel="Chapter" href="Netulex_tut.html">
<link title="Neturl_tut" rel="Chapter" href="Neturl_tut.html">
<link title="Netsys" rel="Chapter" href="Netsys.html">
<link title="Netpop" rel="Chapter" href="Netpop.html">
<link title="Rpc_auth_dh" rel="Chapter" href="Rpc_auth_dh.html">
<link title="Rpc_key_service" rel="Chapter" href="Rpc_key_service.html">
<link title="Rpc_time" rel="Chapter" href="Rpc_time.html">
<link title="Rpc_auth_local" rel="Chapter" href="Rpc_auth_local.html">
<link title="Rtypes" rel="Chapter" href="Rtypes.html">
<link title="Xdr" rel="Chapter" href="Xdr.html">
<link title="Rpc" rel="Chapter" href="Rpc.html">
<link title="Rpc_program" rel="Chapter" href="Rpc_program.html">
<link title="Rpc_portmapper_aux" rel="Chapter" href="Rpc_portmapper_aux.html">
<link title="Rpc_packer" rel="Chapter" href="Rpc_packer.html">
<link title="Rpc_transport" rel="Chapter" href="Rpc_transport.html">
<link title="Rpc_client" rel="Chapter" href="Rpc_client.html">
<link title="Rpc_simple_client" rel="Chapter" href="Rpc_simple_client.html">
<link title="Rpc_portmapper_clnt" rel="Chapter" href="Rpc_portmapper_clnt.html">
<link title="Rpc_portmapper" rel="Chapter" href="Rpc_portmapper.html">
<link title="Rpc_server" rel="Chapter" href="Rpc_server.html">
<link title="Rpc_auth_sys" rel="Chapter" href="Rpc_auth_sys.html">
<link title="Rpc_intro" rel="Chapter" href="Rpc_intro.html">
<link title="Rpc_mapping_ref" rel="Chapter" href="Rpc_mapping_ref.html">
<link title="Rpc_ssl" rel="Chapter" href="Rpc_ssl.html">
<link title="Rpc_xti_client" rel="Chapter" href="Rpc_xti_client.html">
<link title="Shell_sys" rel="Chapter" href="Shell_sys.html">
<link title="Shell" rel="Chapter" href="Shell.html">
<link title="Shell_uq" rel="Chapter" href="Shell_uq.html">
<link title="Shell_mt" rel="Chapter" href="Shell_mt.html">
<link title="Shell_intro" rel="Chapter" href="Shell_intro.html">
<link title="Netsmtp" rel="Chapter" href="Netsmtp.html"><title>Ocamlnet 2 Reference Manual : Nethttp.Header</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="Nethttp.html">Up</a>
&nbsp;</div>
<center><h1>Module <a href="type_Nethttp.Header.html">Nethttp.Header</a></h1></center>
<br>
<pre><span class="keyword">module</span> Header: <code class="code">sig</code> <a href="Nethttp.Header.html">..</a> <code class="code">end</code></pre><hr width="100%">
<br>
This module is a parser/printer for the header fields used in HTTP/1.1.
 The <code class="code">get_*</code> functions generally raise <code class="code">Not_found</code> when the queried header
 is not present. If the syntax of the field is a comma-separated list of
 multiple values, the <code class="code">get_*</code> functions generally merge all headers of
 the same type. The order is preserved in this case. The list <code class="code">[]</code> means
 that the header exists, but only with empty value. For example,
<p>

 <pre><code class="code"> Accept: text/html
 Accept: text/plain
 </code></pre>
<p>

 would be returned as <code class="code">["text/html",[],[]; "text/plain", [],[]]</code>
 by <code class="code">get_accept</code>.  The header
<p>

 <pre><code class="code">Accept:</code></pre>
<p>

 would be returned as <code class="code">[]</code>.
<p>

 The <code class="code">set_*</code> functions generally produce only a single header with comma-
 separated values. Existing header are overwritten/removed.
<p>

 To remove a header, simply use the <code class="code">delete_field</code> method of <code class="code">http_header</code>.
<p>

 Error behaviour: The <code class="code">get_*</code> functions raise <code class="code">Bad_header_field</code>
 when they cannot parse a header field. The <code class="code">set_*</code> functions
 raise <code class="code">Invalid_argument</code> when an invalid value is passed to them
 (only very few functions do that).  The argument of both
 exceptions is the function name.<br>
<pre><span class="keyword">val</span> <a name="VALget_accept"></a>get_accept : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -><br>       (string * (string * string) list * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Accept</code> header as list of triples <code class="code">(media_range,
 media_range_params, accept_params)</code>.  If there are
 <code class="code">accept_params</code>, the first such parameter is always <code class="code">"q"</code>.
<p>

 All present <code class="code">Accept</code> headers are merged. The function returns
 <code class="code">[]</code> when there is at least one <code class="code">Accept</code> header, but none of
 the headers has a non-empty value. The function raises
 <code class="code">Not_found</code> if there no such headers at all (which should be
 interpreted as <code class="code"> ["*/*",[],[] ] </code>).<br>
</div>
<pre><span class="keyword">val</span> <a name="VALbest_media_type"></a>best_media_type : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list -> string * (string * string) list</code></pre><div class="info">
Returns the best media type for a header and a list of supported types.
 If any type is acceptable, "*/*" will be returned. If no type is
 acceptable, "" will be returned.
 The supported media types should be sorted such that the best type
 is mentioned first.
<p>

 Known bug: The rule that media ranges are sorted by degree of
 "specificness" is not implemented, e.g. that "text/html" is
 preferred over other "text/*" when both have the same "q" value.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_accept"></a>set_accept : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -><br>       (string * (string * string) list * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Accept</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_accept_charset"></a>get_accept_charset : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Accept-charset</code> header as list of pairs <code class="code">(charset,params)</code>.
 The only mentioned parameter in RFC 2616 is <code class="code">"q"</code>.
<p>

 All present <code class="code">Accept-charset</code> headers are merged. The function
 raises <code class="code">Not_found</code> when there is no <code class="code">Accept-charset</code> header
 (which should be interpreted as <code class="code"> ["*",[]] </code>).<br>
</div>
<pre><span class="keyword">val</span> <a name="VALbest_charset"></a>best_charset : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list -> string</code></pre><div class="info">
Returns the best charset for a header and a list of supported charsets.
 If any charset is acceptable, "*" will be returned.
 The supported charsets should be sorted such that the best charset
 is mentioned first.
<p>

 This function already implements the special handling of ISO-8859-1
 mentioned in RFC 2616.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_accept_charset"></a>set_accept_charset : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Accept-charset</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_accept_encoding"></a>get_accept_encoding : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Accept-encoding</code> header as list of pairs <code class="code">(coding,params)</code>.
 The only mentioned parameter in RFC 2616 is <code class="code">"q"</code>. The RFC describes
 compatibility problems with the "q" parameter.
<p>

 All present <code class="code">Accept-encoding</code> headers are merged. The function
 raises <code class="code">Not_found</code> when there is no <code class="code">Accept-encoding</code> header
 (which should be interpreted as <code class="code"> ["identity",[]] </code>).  The
 return value <code class="code">[]</code> must be interpreted as <code class="code"> ["identity",[]] </code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALbest_encoding"></a>best_encoding : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list -> string</code></pre><div class="info">
Returns the best encoding for a header and a list of supported
 encodings.  If anything else fails, "identity" will be
 returned.  The supported encodings should be sorted such that
 the best encoding is mentioned first.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_accept_encoding"></a>set_accept_encoding : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Accept-encoding</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_accept_language"></a>get_accept_language : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Accept-language</code> header as list of pairs
 <code class="code">(lang_range,params)</code>.  The only mentioned parameter in RFC
 2616 is <code class="code">"q"</code>.
<p>

 All present <code class="code">Accept-language</code> headers are merged. The function
 raises <code class="code">Not_found</code> when there is no <code class="code">Accept-language</code> header
 (which should be interpreted as <code class="code"> ["*",[]] </code>).<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_accept_language"></a>set_accept_language : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Accept-language</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_accept_ranges"></a>get_accept_ranges : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Accept-ranges</code> header as list of tokens.
<p>

 All present <code class="code">Accept-ranges</code> headers are merged. The function
 raises <code class="code">Not_found</code> when there is no <code class="code">Accept-ranges</code>
 header. The RFC leaves it open how this is to be interpreted
 in general.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_accept_ranges"></a>set_accept_ranges : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Accept-ranges</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_age"></a>get_age : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> float</code></pre><div class="info">
Returns the <code class="code">Age</code> header as number<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_age"></a>set_age : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> float -> unit</code></pre><div class="info">
Sets the <code class="code">Age</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_allow"></a>get_allow : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Allow</code> header as list of tokens.
<p>

 All present <code class="code">Allow</code> headers are merged. The function raises <code class="code">Not_found</code>
 when there is no <code class="code">Allow</code> header. The RFC leaves it open how this is
 to be interpreted in general.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_allow"></a>set_allow : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Allow</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_authorization"></a>get_authorization : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string * (string * string) list</code></pre><div class="info">
Returns the <code class="code">Authorization</code> header as pair <code class="code">(auth_scheme,auth_params)</code>,
 or raises <code class="code">Not_found</code> if not present.
<p>

 The "Basic" authentication scheme is represented specially as
 <code class="code">("basic", [ "credentials", creds ])</code> where <code class="code">creds</code> are the
 Base64-encoded credentials.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_authorization"></a>set_authorization : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string * (string * string) list -> unit</code></pre><div class="info">
Sets the <code class="code">Authorization</code> header.
 The "Basic" authentication scheme is represented as explained for
 <code class="code">get_authorization</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_cache_control"></a>get_cache_control : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> <a href="Nethttp.html#TYPEcache_control_token">Nethttp.cache_control_token</a> list</code></pre><div class="info">
Returns the <code class="code">Cache-control</code> header as list of tokens.
<p>

 All present <code class="code">Cache-control</code> headers are merged. The function
 raises <code class="code">Not_found</code> when there is no <code class="code">Cache-control</code> header.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_cache_control"></a>set_cache_control : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> <a href="Nethttp.html#TYPEcache_control_token">Nethttp.cache_control_token</a> list -> unit</code></pre><div class="info">
Sets the <code class="code">Cache-control</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_connection"></a>get_connection : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Connection</code> header as list of tokens.
<p>

 All present <code class="code">Connection</code> headers are merged. The function
 raises <code class="code">Not_found</code> when there is no <code class="code">Connection</code> header.
<p>

 The Connection header must be ignored when received from a
 HTTP/1.0 client.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_connection"></a>set_connection : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Connection</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_encoding"></a>get_content_encoding : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Content-encoding</code> header as list of tokens.
<p>

 All present <code class="code">Content-encoding</code> headers are merged.
<br>
<b>Raises</b> <code>Not_found</code> when there is no <code class="code">Content-encoding</code> header.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_encoding"></a>set_content_encoding : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Content-encoding</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_language"></a>get_content_language : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Content-language</code> header as list of tokens.
<p>

 All present <code class="code">Content-language</code> headers are merged.
<br>
<b>Raises</b> <code>Not_found</code> when there is no <code class="code">Content-language</code> header.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_language"></a>set_content_language : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Content-language</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_length"></a>get_content_length : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> int64</code></pre><div class="info">
Returns the <code class="code">Content-length</code> header as number. If the number
 is too big for int64, the exception <code class="code">Bad_header_field
 "Content-length"</code> will be raised.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_length"></a>set_content_length : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> int64 -> unit</code></pre><div class="info">
Sets the <code class="code">Content-length</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_location"></a>get_content_location : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">Content-location</code> header as string.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_location"></a>set_content_location : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">Content-location</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_md5"></a>get_content_md5 : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">Content-MD5</code> header as string. The Base64 encoding
 has not been touched.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_md5"></a>set_content_md5 : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">Content-MD5</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_range"></a>get_content_range : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -><br>       [ `Bytes of (int64 * int64) option * int64 option ]</code></pre><div class="info">
Returns the <code class="code">Content-range</code> header as
 <code class="code">`Bytes(byte_range_resp_spec, instance_length)</code>.  The option value
 <code class="code">None</code> corresponds to "*" in the RFC.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_range"></a>set_content_range : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -><br>       [ `Bytes of (int64 * int64) option * int64 option ] -> unit</code></pre><div class="info">
Sets the <code class="code">Content-range</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_content_type"></a>get_content_type : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string * (string * string) list</code></pre><div class="info">
Returns the <code class="code">Content-type</code> header as pair <code class="code">(media_type, params)</code>.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_content_type"></a>set_content_type : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string * (string * string) list -> unit</code></pre><div class="info">
Sets the <code class="code">Content-type</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_date"></a>get_date : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> float</code></pre><div class="info">
Returns the <code class="code">Date</code> header as number (seconds since the Epoch).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_date"></a>set_date : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> float -> unit</code></pre><div class="info">
Sets the <code class="code">Date</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_etag"></a>get_etag : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> <a href="Nethttp.html#TYPEetag">Nethttp.etag</a></code></pre><div class="info">
Returns the <code class="code">Etag</code> header.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_etag"></a>set_etag : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> -> unit</code></pre><div class="info">
Sets the <code class="code">Etag</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_expect"></a>get_expect : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -><br>       (string * string option * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Expect</code> header as list of triples <code class="code">(token,value,params)</code>.
<p>

 All present <code class="code">Expect</code> headers are merged.
<br>
<b>Raises</b> <code>Not_found</code> when there is no <code class="code">Expect</code> header.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_expect"></a>set_expect : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -><br>       (string * string option * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Expect</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_expires"></a>get_expires : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> float</code></pre><div class="info">
Returns the <code class="code">Expires</code> header as number (seconds since the Epoch).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_expires"></a>set_expires : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> float -> unit</code></pre><div class="info">
Sets the <code class="code">Expires</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_from"></a>get_from : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">From</code> header as string.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_from"></a>set_from : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">From</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_host"></a>get_host : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string * int option</code></pre><div class="info">
Returns the <code class="code">Host</code> header as pair <code class="code">(host,port)</code>.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_host"></a>set_host : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string * int option -> unit</code></pre><div class="info">
Sets the <code class="code">Host</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_if_match"></a>get_if_match : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> list option</code></pre><div class="info">
Returns the <code class="code">If-match</code> header. The value <code class="code">None</code> means "*".
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_if_match"></a>set_if_match : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> list option -> unit</code></pre><div class="info">
Sets the <code class="code">If-match</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_if_modified_since"></a>get_if_modified_since : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> float</code></pre><div class="info">
Returns the <code class="code">If-modified-since</code> header as number (seconds
 since the Epoch).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_if_modified_since"></a>set_if_modified_since : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> float -> unit</code></pre><div class="info">
Sets the <code class="code">If-modified-since</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_if_none_match"></a>get_if_none_match : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> list option</code></pre><div class="info">
Returns the <code class="code">If-none-match</code> header. The value <code class="code">None</code> means "*".
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_if_none_match"></a>set_if_none_match : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> list option -> unit</code></pre><div class="info">
Sets the <code class="code">If-none-match</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_if_range"></a>get_if_range : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> [ `Date of float | `Etag of <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> ]</code></pre><div class="info">
Returns the <code class="code">If-range</code> header.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_if_range"></a>set_if_range : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> [ `Date of float | `Etag of <a href="Nethttp.html#TYPEetag">Nethttp.etag</a> ] -> unit</code></pre><div class="info">
Sets the <code class="code">If-range</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_if_unmodified_since"></a>get_if_unmodified_since : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> float</code></pre><div class="info">
Returns the <code class="code">If-unmodified-since</code> header as number (seconds
 since the Epoch).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_if_unmodified_since"></a>set_if_unmodified_since : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> float -> unit</code></pre><div class="info">
Sets the <code class="code">If-unmodified-since</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_last_modified"></a>get_last_modified : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> float</code></pre><div class="info">
Returns the <code class="code">Last-modified</code> header as number (seconds since the Epoch).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_last_modified"></a>set_last_modified : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> float -> unit</code></pre><div class="info">
Sets the <code class="code">Last-modified</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_location"></a>get_location : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">Location</code> header as string.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_location"></a>set_location : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">Location</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_max_forwards"></a>get_max_forwards : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> int</code></pre><div class="info">
Returns the <code class="code">Max-forwards</code> header as number.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_max_forwards"></a>set_max_forwards : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> int -> unit</code></pre><div class="info">
Sets the <code class="code">Max-forwards</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_pragma"></a>get_pragma : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * string option) list</code></pre><div class="info">
Returns the <code class="code">Pragma</code> header as list of pairs <code class="code">(token,value)</code>.
<p>

 All present <code class="code">Pragma</code> headers are merged.
<br>
<b>Raises</b> <code>Not_found</code> when there is no <code class="code">Pragma</code> header.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_pragma"></a>set_pragma : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * string option) list -> unit</code></pre><div class="info">
Sets the <code class="code">Pragma</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_proxy_authenticate"></a>get_proxy_authenticate : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Proxy-authenticate</code> header as list of challenges
 <code class="code">(auth_scheme,auth_params)</code>.
<p>

 All present <code class="code">Proxy-authenticate</code> headers are merged.
<br>
<b>Raises</b> <code>Not_found</code> when there is no <code class="code">Proxy-authenticate</code> header.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_proxy_authenticate"></a>set_proxy_authenticate : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Proxy-authenticate</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_proxy_authorization"></a>get_proxy_authorization : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string * (string * string) list</code></pre><div class="info">
Returns the <code class="code">Proxy-authorization</code> header as pair
 <code class="code">(auth_scheme,auth_params)</code>.<br>
<b>Raises</b> <code>Not_found</code> when the header is
 missing.
<p>

 The "Basic" authentication scheme is represented specially as
 <code class="code">("basic", [ "credentials", creds ])</code> where <code class="code">creds</code> are the
 Base64-encoded credentials.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_proxy_authorization"></a>set_proxy_authorization : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string * (string * string) list -> unit</code></pre><div class="info">
Sets the <code class="code">Proxy-authorization</code> header
 The "Basic" authentication scheme is represented as explained for
 <code class="code">get_proxy_authorization</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_range"></a>get_range : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> [ `Bytes of (int64 option * int64 option) list ]</code></pre><div class="info">
Returns the <code class="code">Range</code> header as <code class="code">`Bytes ranges</code>, where the list <code class="code">ranges</code>
 has elements of the form <code class="code">(Some first_pos, Some last_pos)</code>,
 <code class="code">(Some first_pos, None)</code> (prefix range), or <code class="code">(None, Some
 last_pos)</code> (suffix range).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_range"></a>set_range : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -><br>       [ `Bytes of (int64 option * int64 option) list ] -> unit</code></pre><div class="info">
Sets the <code class="code">Range</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_referer"></a>get_referer : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">Referer</code> header as string.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_referrer"></a>get_referrer : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Same, for addicts of correct orthography<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_referer"></a>set_referer : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">Referer</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_referrer"></a>set_referrer : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Same, for addicts of correct orthography<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_retry_after"></a>get_retry_after : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> [ `Date of float | `Seconds of int ]</code></pre><div class="info">
Returns the <code class="code">Retry-after</code> header.
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_retry_after"></a>set_retry_after : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> [ `Date of float | `Seconds of int ] -> unit</code></pre><div class="info">
Sets the <code class="code">Retry-after</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_server"></a>get_server : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">Server</code> header as uninterpreted string (including
 comments).
<br>
<b>Raises</b> <code>Not_found</code> when the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_server"></a>set_server : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">Server</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_te"></a>get_te : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -><br>       (string * (string * string) list * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">TE</code> header as list of triples
 <code class="code">(te_token, te_params, accept_params)</code>.
 If there are <code class="code">accept_params</code>, the first such parameter is always <code class="code">"q"</code>.
<p>

 All present <code class="code">TE</code> headers are merged. The function returns <code class="code">[]</code> when
 there is at least one <code class="code">TE</code> header, but none of the headers has a
 non-empty value.
<br>
<b>Raises</b> <code>Not_found</code> if there no such headers at all.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_te"></a>set_te : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -><br>       (string * (string * string) list * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">TE</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_trailer"></a>get_trailer : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Trailer</code> header as list of field names.
<p>

 All present <code class="code">Trailer</code> headers are merged. The function returns
 <code class="code">[]</code> when there is at least one <code class="code">Trailer</code> header, but none of
 the headers has a non-empty value.
<br>
<b>Raises</b> <code>Not_found</code> if there no such headers at all.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_trailer"></a>set_trailer : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Trailer</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_transfer_encoding"></a>get_transfer_encoding : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">Transfer-encoding</code> header as list of pairs
 <code class="code">(token, params)</code>.
<p>

 All present <code class="code">Transfer-encoding</code> headers are merged. The
 function returns <code class="code">[]</code> when there is at least one
 <code class="code">Transfer-encoding</code> header, but none of the headers has a
 non-empty value.
<br>
<b>Raises</b> <code>Not_found</code> if there no such headers at all.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_transfer_encoding"></a>set_transfer_encoding : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">Transfer-encoding</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_upgrade"></a>get_upgrade : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string list</code></pre><div class="info">
Returns the <code class="code">Upgrade</code> header as list of products.
<p>

 All present <code class="code">Upgrade</code> headers are merged. The function returns
 <code class="code">[]</code> when there is at least one <code class="code">Upgrade</code> header, but none of
 the headers has a non-empty value.
<br>
<b>Raises</b> <code>Not_found</code> if there no such headers at all.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_upgrade"></a>set_upgrade : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string list -> unit</code></pre><div class="info">
Sets the <code class="code">Upgrade</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_user_agent"></a>get_user_agent : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> string</code></pre><div class="info">
Returns the <code class="code">User-agent</code> header as uninterpreted string
 (including comments).
<br>
<b>Raises</b> <code>Not_found</code> if the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_user_agent"></a>set_user_agent : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> string -> unit</code></pre><div class="info">
Sets the <code class="code">User-agent</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_vary"></a>get_vary : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> [ `Fields of string list | `Star ]</code></pre><div class="info">
Returns the <code class="code">Vary</code> header.
<br>
<b>Raises</b> <code>Not_found</code> if the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_vary"></a>set_vary : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> [ `Fields of string list | `Star ] -> unit</code></pre><div class="info">
Sets the <code class="code">Vary</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_www_authenticate"></a>get_www_authenticate : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * (string * string) list) list</code></pre><div class="info">
Returns the <code class="code">WWW-Authenticate</code> header as list of challenges
 <code class="code">(auth_scheme,auth_params)</code>.
<p>

 All present <code class="code">WWW-Authenticate</code> headers are merged.
<br>
<b>Raises</b> <code>Not_found</code> if the header is missing.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_www_authenticate"></a>set_www_authenticate : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * (string * string) list) list -> unit</code></pre><div class="info">
Sets the <code class="code">WWW-Authenticate</code> header<br>
</div>
<pre><span class="keyword">val</span> <a name="VALget_cookie"></a>get_cookie : <code class="type">#<a href="Nethttp.http_header_ro.html">Nethttp.http_header_ro</a> -> (string * string) list</code></pre><div class="info">
Get the cookies as (name,value) pairs (or Not_found)<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_cookie"></a>set_cookie : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> (string * string) list -> unit</code></pre><div class="info">
Set the <code class="code">Cookie</code> header. Note: This does not set cookies in the client,
 use <code class="code">set_set_cookie</code> instead!<br>
</div>
<pre><span class="keyword">val</span> <a name="VALset_set_cookie"></a>set_set_cookie : <code class="type">#<a href="Nethttp.http_header.html">Nethttp.http_header</a> -> <a href="Nethttp.html#TYPEcookie">Nethttp.cookie</a> list -> unit</code></pre><div class="info">
Set the <code class="code">Set-Cookie</code> header<br>
</div>
</body></html>