ehttp icon indicating copy to clipboard operation
ehttp copied to clipboard

I added a multipart feature

Open JustFrederik opened this issue 2 years ago • 3 comments

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);

JustFrederik avatar Sep 17 '23 10:09 JustFrederik

thank you! Can you please add some helpful docstrings to the key things? 🙏

Especially to Request::multipart and to MultipartBuilder

I added an example to request::multipart. The multipart builder already had some documentation, but is also used in the example

JustFrederik avatar Sep 18 '23 17:09 JustFrederik

Should I add the method setter?

JustFrederik avatar Sep 20 '23 17:09 JustFrederik

This pr doesn't seem to have changed in a long time.

tmtbe avatar Dec 07 '23 01:12 tmtbe