mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
2 lines
3 KiB
HTML
2 lines
3 KiB
HTML
<!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> » <a href="../../index.html">cohttp-lwt</a> » <a href="../index.html">Cohttp_lwt</a> » 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>
|