nanoev/tiny_httpd/Tiny_httpd_multipart_form_data/index.html
2025-05-05 14:16:16 +00:00

7 lines
4.5 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>Tiny_httpd_multipart_form_data (tiny_httpd.Tiny_httpd_multipart_form_data)</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">tiny_httpd</a> &#x00BB; Tiny_httpd_multipart_form_data</nav><header class="odoc-preamble"><h1>Module <code><span>Tiny_httpd_multipart_form_data</span></code></h1><p>Streaming parser for multipart/form-data</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Content_disposition"><a href="#module-Content_disposition" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Content_disposition/index.html">Content_disposition</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-st"><a href="#type-st" class="anchor"></a><code><span><span class="keyword">type</span> st</span></code></div><div class="spec-doc"><p>Parser state</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-create"><a href="#val-create" class="anchor"></a><code><span><span class="keyword">val</span> create :
<span><span class="optlabel">?buf_size</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><span class="optlabel">?out_buf_size</span>:int <span class="arrow">&#45;&gt;</span></span>
<span><span class="label">boundary</span>:string <span class="arrow">&#45;&gt;</span></span>
<span><a href="../../iostream/Iostream/In/class-type-t/index.html">Iostream.In.t</a> <span class="arrow">&#45;&gt;</span></span>
<a href="#type-st">st</a></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-parse_content_type"><a href="#val-parse_content_type" class="anchor"></a><code><span><span class="keyword">val</span> parse_content_type : <span><a href="../Tiny_httpd_core/Headers/index.html#type-t">Tiny_httpd.Headers.t</a> <span class="arrow">&#45;&gt;</span></span> <span><span>[ <span>`boundary of string</span> ]</span> option</span></span></code></div><div class="spec-doc"><p>Parse headers for <code>content-type: multipart/form-data; boundary=…</code></p></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-slice"><a href="#type-slice" class="anchor"></a><code><span><span class="keyword">type</span> slice</span><span> = <a href="../../iostream/Iostream/Slice/index.html#type-t">Iostream.Slice.t</a></span></code></div></div><div class="odoc-spec"><div class="spec type anchored" id="type-event"><a href="#type-event" class="anchor"></a><code><span><span class="keyword">type</span> event</span><span> = </span></code><ol><li id="type-event.Part" class="def variant constructor anchored"><a href="#type-event.Part" class="anchor"></a><code><span>| </span><span><span class="constructor">Part</span> <span class="keyword">of</span> <a href="../Tiny_httpd_core/Headers/index.html#type-t">Tiny_httpd.Headers.t</a></span></code></li><li id="type-event.Read" class="def variant constructor anchored"><a href="#type-event.Read" class="anchor"></a><code><span>| </span><span><span class="constructor">Read</span> <span class="keyword">of</span> <a href="#type-slice">slice</a></span></code></li><li id="type-event.End_of_input" class="def variant constructor anchored"><a href="#type-event.End_of_input" class="anchor"></a><code><span>| </span><span><span class="constructor">End_of_input</span></span></code></li></ol></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-next"><a href="#val-next" class="anchor"></a><code><span><span class="keyword">val</span> next : <span><a href="#type-st">st</a> <span class="arrow">&#45;&gt;</span></span> <a href="#type-event">event</a></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Private_"><a href="#module-Private_" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Private_/index.html">Private_</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div><div class="spec-doc"><p>/</p></div></div></div></body></html>