cryptosense / multipart-form-data

multipart/form-data (RFC2388) parser for OCaml
BSD 2-Clause "Simplified" License
19 stars 6 forks source link

Implement section 4.3 of RFC7578 - multipart form data #29

Closed bikallem closed 4 years ago

bikallem commented 4 years ago

This PR implements section 4.3 of RFC7578, i.e. multiple files in one Form field [1] . I have also updated the tests to exercise this new functionality.

It seems the higher level apis parse_stream, get_parts work quite well now. The README on this repo suggests not so. Should README be changed to remove that it doesn't work well?

I have also added .ocamlformat. Not sure if this is welcome. Please let me know it this isn't desired. I will revert to non formatted version if required.

Note: This is a breaking change from previous version.

[1] https://tools.ietf.org/html/rfc7578#section-4.3

bikallem commented 4 years ago

Closing.