ocaml-opentelemetry/cohttp-lwt/Cohttp_lwt/Connection_cache/index.html
2025-07-23 14:08:20 +00:00

2 lines
3 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Connection_cache (cohttp-lwt.Cohttp_lwt.Connection_cache)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../index.html">Index</a> &#x00BB; <a href="../../index.html">cohttp-lwt</a> &#x00BB; <a href="../index.html">Cohttp_lwt</a> &#x00BB; Connection_cache</nav><header class="odoc-preamble"><h1>Module <code><span>Cohttp_lwt.Connection_cache</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Make_no_cache"><a href="#module-Make_no_cache" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Make_no_cache/index.html">Make_no_cache</a></span><span> (<a href="Make_no_cache/argument-1-Connection/index.html">Connection</a> : <a href="../S/module-type-Connection/index.html">S.Connection</a>) : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div><div class="spec-doc"><p>This functor establishes a new connection for each request.</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Make"><a href="#module-Make" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Make/index.html">Make</a></span><span> (<a href="Make/argument-1-Connection/index.html">Connection</a> : <a href="../S/module-type-Connection/index.html">S.Connection</a>) (<a href="Make/argument-2-Sleep/index.html">Sleep</a> : <a href="../S/module-type-Sleep/index.html">S.Sleep</a>) : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div><div class="spec-doc"><p>This functor keeps a cache of connections for reuse. Connections are reused based on their remote <code>Conduit.endp</code> (effectively IP / port).</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Make_proxy"><a href="#module-Make_proxy" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Make_proxy/index.html">Make_proxy</a></span><span> (<a href="Make_proxy/argument-1-Connection/index.html">Connection</a> : <a href="../S/module-type-Connection/index.html">S.Connection</a>) (<a href="Make_proxy/argument-2-Sleep/index.html">Sleep</a> : <a href="../S/module-type-Sleep/index.html">S.Sleep</a>) : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div><div class="spec-doc"><p>This functor keeps a cache of connections for reuse. Connections are reused based on their remote <code>Conduit.endp</code> (effectively IP / port). It also supports automatically connecting and reconnecting to direct and tunneling proxies, based on the remote URI scheme (HTTP will select direct proxies, HTTPS tunneling proxies).</p></div></div></div></body></html>