form-data-builder 1.0.1

Simple multipart/form-data (RFC 7578) document builder
Documentation
  • Coverage
  • 100%
    8 out of 8 items documented7 out of 8 items with examples
  • Size
  • Source code size: 15.21 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 393.73 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • iliana/form-data-builder
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • iliana

form-data-builder

This is a simple multipart/form-data (RFC 7578) document builder.

use form_data_builder::FormData;

let mut form = FormData::new(Vec::new()); // use a Vec<u8> as a writer
form.content_type_header(); // add this `Content-Type` header to your HTTP request

form.write_path("ferris", "testdata/rustacean-flat-noshadow.png", "image/png")?;
form.write_field("cute", "yes")?;
form.finish(); // returns the writer

Looking for a feature-packed, asynchronous, robust, and well-tested multipart/form-data library that validates things like content types? We hope you find one somewhere!

License: MIT-0