<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Part (http-multipart-formdata.Http_multipart_formdata.Part)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.0.0-beta2-97-gcb4f04e2"/><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">http-multipart-formdata</a> &#x00BB; <a href="../index.html">Http_multipart_formdata</a> &#x00BB; Part</nav><header class="odoc-preamble"><h1>Module <code><span>Http_multipart_formdata.Part</span></code></h1><p>Represents a parsed multipart part. A part corresponds to a submitted form field data in a HTTP request.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec type" id="type-t" class="anchored"><a href="#type-t" class="anchor"></a><code><span><span class="keyword">type</span> t</span><span> = </span><span>{</span></code><table><tr id="type-t.body" class="anchored"><td class="def record field"><a href="#type-t.body" class="anchor"></a><code><span>body : bytes;</span></code></td><td class="def-doc"><span class="comment-delim">(*</span><p>Body content</p><span class="comment-delim">*)</span></td></tr><tr id="type-t.name" class="anchored"><td class="def record field"><a href="#type-t.name" class="anchor"></a><code><span>name : string;</span></code></td><td class="def-doc"><span class="comment-delim">(*</span><p>Name of the part - form field name</p><span class="comment-delim">*)</span></td></tr><tr id="type-t.content_type" class="anchored"><td class="def record field"><a href="#type-t.content_type" class="anchor"></a><code><span>content_type : string;</span></code></td><td class="def-doc"><span class="comment-delim">(*</span><p>HTTP content type of the part <code>body</code>. &quot;text/plain&quot; is default</p><span class="comment-delim">*)</span></td></tr><tr id="type-t.filename" class="anchored"><td class="def record field"><a href="#type-t.filename" class="anchor"></a><code><span>filename : <span>string option</span>;</span></code></td><td class="def-doc"><span class="comment-delim">(*</span><p><code>filename</code> form field attribute.</p><span class="comment-delim">*)</span></td></tr><tr id="type-t.parameters" class="anchored"><td class="def record field"><a href="#type-t.parameters" class="anchor"></a><code><span>parameters : <span>string <span class="xref-unresolved">Map</span>.t</span>;</span></code></td><td class="def-doc"><span class="comment-delim">(*</span><p>Additional <code>key = value</code> params of the form field.</p><span class="comment-delim">*)</span></td></tr></table><code><span>}</span></code></div></div><div class="odoc-spec"><div class="spec value" id="val-pp" class="anchored"><a href="#val-pp" class="anchor"></a><code><span><span class="keyword">val</span> pp : <span><span class="xref-unresolved">Stdlib</span>.Format.formatter <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div><div class="spec-doc"><p><code>pp fmt part</code> is the pretty printer for <code>t</code>.</p></div></div><div class="odoc-spec"><div class="spec value" id="val-equal" class="anchored"><a href="#val-equal" class="anchor"></a><code><span><span class="keyword">val</span> equal : <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="#type-t">t</a> <span class="arrow">&#45;&gt;</span></span> bool</span></code></div><div class="spec-doc"><p><code>equal part1 part2</code> returns <code>true</code> if <code>part1</code> and <code>part2</code> are equal.</p></div></div></div></body></html>