<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Part (http-multipart-formdata.Http_multipart_formdata__Multipart.Part)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> â€“ <a href="../../index.html">http-multipart-formdata</a> &#x00BB; <a href="../index.html">Http_multipart_formdata__Multipart</a> &#x00BB; Part</nav><h1>Module <code>Http_multipart_formdata__Multipart.Part</code></h1><p>Represents a parsed multipart part. A part corresponds to a submitted form field data in a HTTP request.</p></header><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code><code> = </code><code>{</code><table class="record"><tr id="type-t.body" class="anchored"><td class="def field"><a href="#type-t.body" class="anchor"></a><code>body : bytes;</code></td><td class="doc"><p>Body content</p></td></tr><tr id="type-t.name" class="anchored"><td class="def field"><a href="#type-t.name" class="anchor"></a><code>name : string;</code></td><td class="doc"><p>Name of the part - form field name</p></td></tr><tr id="type-t.content_type" class="anchored"><td class="def field"><a href="#type-t.content_type" class="anchor"></a><code>content_type : string;</code></td><td class="doc"><p>HTTP content type of the part <code>body</code>. &quot;text/plain&quot; is default</p></td></tr><tr id="type-t.filename" class="anchored"><td class="def field"><a href="#type-t.filename" class="anchor"></a><code>filename : <span>string option</span>;</code></td><td class="doc"><p><code>filename</code> form field attribute.</p></td></tr><tr id="type-t.parameters" class="anchored"><td class="def field"><a href="#type-t.parameters" class="anchor"></a><code>parameters : <span>string <a href="../index.html#module-Map">Map</a>.t</span>;</code></td><td class="doc"><p>Additional <code>key = value</code> params of the form field.</p></td></tr></table><code>}</code></dt></dl><dl><dt class="spec value" id="val-pp"><a href="#val-pp" class="anchor"></a><code><span class="keyword">val</span> pp : Stdlib.Format.formatter <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> unit</code></dt><dd><p><code>pp fmt part</code> is the pretty printer for <code>t</code>.</p></dd></dl><dl><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val</span> equal : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p><code>equal part1 part2</code> returns <code>true</code> if <code>part1</code> and <code>part2</code> are equal.</p></dd></dl></div></body></html>