mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
3 lines
3.2 KiB
HTML
3 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>String_io (cohttp.Cohttp.Private.String_io)</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</a> » <a href="../../index.html">Cohttp</a> » <a href="../index.html">Private</a> » String_io</nav><header class="odoc-preamble"><h1>Module <code><span>Private.String_io</span></code></h1><p>IO implementation that uses strings to marshal and unmarshal HTTP</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-buf"><a href="#type-buf" class="anchor"></a><code><span><span class="keyword">type</span> buf</span><span> = </span><span>{</span></code><ol><li id="type-buf.str" class="def record field anchored"><a href="#type-buf.str" class="anchor"></a><code><span>str : string;</span></code></li><li id="type-buf.pos" class="def record field anchored"><a href="#type-buf.pos" class="anchor"></a><code><span><span class="keyword">mutable</span> pos : int;</span></code></li><li id="type-buf.len" class="def record field anchored"><a href="#type-buf.len" class="anchor"></a><code><span>len : int;</span></code></li></ol><code><span>}</span></code></div><div class="spec-doc"><p>The buffer structured used to keep track of where in the string the library is currently reading from</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-open_in"><a href="#val-open_in" class="anchor"></a><code><span><span class="keyword">val</span> open_in : <span>string <span class="arrow">-></span></span> <a href="#type-buf">buf</a></span></code></div><div class="spec-doc"><p><code>open_in s</code> will make the string <code>s</code> available as a <code>buf</code> that can be parsed via Cohttp</p></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-M"><a href="#module-M" class="anchor"></a><code><span><span class="keyword">module</span> <a href="M/index.html">M</a></span><span> :
|
||
<a href="../../S/module-type-IO/index.html">S.IO</a> <span class="keyword">with</span> <span><span class="keyword">type</span> <span>'a <a href="../../S/module-type-IO/index.html#type-t">t</a></span> = <span class="type-var">'a</span></span> <span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../S/module-type-IO/index.html#type-ic">ic</a> = <a href="#type-buf">buf</a></span> <span class="keyword">and</span> <span><span class="keyword">type</span> <a href="../../S/module-type-IO/index.html#type-oc">oc</a> = <a href="../../../../ocaml/Stdlib/Buffer/index.html#type-t">Stdlib.Buffer.t</a></span></span></code></div><div class="spec-doc"><p>IO interface that uses <a href="#type-buf"><code>buf</code></a> for input data and queues output data into a <code>Buffer.t</code></p></div></div></div></body></html>
|