ocaml-opentelemetry/cohttp/Cohttp/Generic/Client/Make/argument-1-Base/index.html
2025-05-27 13:51:07 +00:00

9 lines
3.8 KiB
HTML
Raw 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>Base (cohttp.Cohttp.Generic.Client.Make.Base)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../../../../_odoc-theme/odoc.css"/><meta name="generator" content="odoc 3.0.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</a> &#x00BB; <a href="../../../../index.html">Cohttp</a> &#x00BB; <a href="../../../index.html">Generic</a> &#x00BB; <a href="../../index.html">Client</a> &#x00BB; <a href="../index.html">Make</a> &#x00BB; Base</nav><header class="odoc-preamble"><h1>Parameter <code><span>Make.Base</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type anchored" id="type-io"><a href="#type-io" class="anchor"></a><code><span><span class="keyword">type</span> <span>+'a io</span></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-with_context"><a href="#type-with_context" class="anchor"></a><code><span><span class="keyword">type</span> <span>'a with_context</span></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-body"><a href="#type-body" class="anchor"></a><code><span><span class="keyword">type</span> body</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-map_context"><a href="#val-map_context" class="anchor"></a><code><span><span class="keyword">val</span> map_context : <span><span><span class="type-var">'a</span> <a href="#type-with_context">with_context</a></span> <span class="arrow">&#45;&gt;</span></span> <span><span>(<span><span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span> <span class="type-var">'b</span>)</span> <span class="arrow">&#45;&gt;</span></span> <span><span class="type-var">'b</span> <a href="#type-with_context">with_context</a></span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-call"><a href="#val-call" class="anchor"></a><code><span><span class="keyword">val</span> call :
<span><span>(<span><span class="optlabel">?headers</span>:<a href="../../../../../../http/Http/Header/index.html#type-t">Http.Header.t</a> <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?body</span>:<a href="#type-body">body</a> <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?chunked</span>:bool <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../../../../../http/Http/Method/index.html#type-t">Http.Method.t</a> <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../../../../../uri/Uri/index.html#type-t">Uri.t</a> <span class="arrow">&#45;&gt;</span></span>
<span><span>(<a href="../../../../../../http/Http/Response/index.html#type-t">Http.Response.t</a> * <a href="#type-body">body</a>)</span> <a href="#type-io">io</a></span>)</span>
<a href="#type-with_context">with_context</a></span></span></code></div><div class="spec-doc"><p><code>call ?headers ?body ?chunked meth uri</code></p><ul class="at-tags"><li class="returns"><span class="at-tag">returns</span> <p><code>(response, response_body)</code> Consume <code>response_body</code> in a timely fashion. Please see <a href="#val-call"><code>call</code></a> about how and why.</p></li></ul><ul class="at-tags"><li class="parameter"><span class="at-tag">parameter</span> <span class="value">chunked</span> <p>use chunked encoding if <code>true</code>. The default is <code>false</code> for compatibility reasons.</p></li></ul></div></div></div></body></html>