ehttp
ehttp copied to clipboard
I added a multipart feature
Its basically just ureq_multipart, but without the converion to ureqs Request so it will work with wasm.
use ehttp::multipart::MultipartBuilder;
let builder = MultipartBuilder::new()
.add_file("test","/home/feiy/Desktop/1.txt").unwrap()
.add_text("name","value");
let request = ehttp::Request:multipart(url, builder);
thank you! Can you please add some helpful docstrings to the key things? 🙏
Especially to
Request::multipartand toMultipartBuilder
I added an example to request::multipart. The multipart builder already had some documentation, but is also used in the example
Should I add the method setter?
This pr doesn't seem to have changed in a long time.