package http-multipart-formdata
Http multipart/formdata parser
Install
Dune Dependency
Authors
Maintainers
Sources
http-multipart-formdata-v1.0.0.tbz
sha256=73e43c4e31560499f6998ebddd117f76b5e9cfe5edafa390f4a088e1f4fa7fa2
sha512=fc24b6238406aba0a452262ee7879e58f2fc307341dad43baae61a39e5eae0f4ce54913a06d0d26af871267827f95e7ed4281d38f6b50177fdf91b6ee6828118
Description
OCaml implementation of RFC 7578 (Returning Values from Forms: multipart/form-data)- https://tools.ietf.org/html/rfc7578
README
http-mutlipart-formdata
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.
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
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page