http-multipart-formdata

Http multipart/formdata parser
README

A library which enables HTTP file uploads in ocaml web applications. HTTP file upload requests are generally encoded as multipart/form-data media content type. The library provides a simple api to parse and process such requests.

The parser implements HTTP multipart/form-data standard as defined in RFC 7578.

API Documentation

Installation

$ opam install http-multipart-formdata

Examples

module M = Http_multipart_formdata

let mp = M.parse ~content_type_header ~body in
let file1_parts : M.Part.t list  = M.Map.find "file1" mp

Full API Usage

Install
Published
07 Apr 2021
Maintainers
Sources
v1.1.0.tar.gz
md5=bc7caa989b76b1202fbe0a2271acd10a
sha512=d05c9bfc0dd3f65fd890e581c88a9a3729ab2c88e2c8d424581f0411fc52525af445b79a1f8a1f9760a012629e22fc323e467a58e7ab2dfd4769dea45df74efd
Dependencies
odoc
with-doc
alcotest
with-test
reparse
(>= "2.1.0" & < "3.0.0")
fmt
>= "0.8.9"
ocaml
>= "4.10.0"
dune
>= "2.7"
Reverse Dependencies