# ureq multipart toolkit **Repository Path**: eshangrao/ureq-multipart-toolkit ## Basic Information - **Project Name**: ureq multipart toolkit - **Description**: a ureq multipart post toolkit - **Primary Language**: Rust - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-01-29 - **Last Updated**: 2023-02-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ureq multipart post toolkit a ureq http multipart post toolkit。 fork from [multipart](https://crates.io/crates/multipart) # Examples 1 ```ignore use ureq_multipart::MultipartBuilder; let (content_type,data) = MultipartBuilder::new() .add_file("test","/home/feiy/Desktop/1.txt").unwrap() .add_text("name","value") .finish().unwrap(); let resp: Value = ureq::post("http://some.service.url") .set("Content-Type", &content_type) .send_bytes(&data)? .into_json()? ``` # Examples 2 ```ignore use ureq_multipart::MultipartRequest; let resp: Value = ureq::post("http://some.service.url") .send_multipart_file("name","&/home/feiy/Desktop/1.txt")? .into_json()? ```