Struct reqwest::multipart::Form [−][src]
pub struct Form { /* fields omitted */ }Expand description
An async multipart/form-data request.
Implementations
impl Form[src]
impl Form[src]pub fn text<T, U>(self, name: T, value: U) -> Form where
T: Into<Cow<'static, str>>,
U: Into<Cow<'static, str>>, [src]
pub fn text<T, U>(self, name: T, value: U) -> Form where
T: Into<Cow<'static, str>>,
U: Into<Cow<'static, str>>, [src]Add a data field with supplied name and value.
Examples
let form = reqwest::multipart::Form::new() .text("username", "seanmonstar") .text("password", "secret");
pub fn part<T>(self, name: T, part: Part) -> Form where
T: Into<Cow<'static, str>>, [src]
pub fn part<T>(self, name: T, part: Part) -> Form where
T: Into<Cow<'static, str>>, [src]Adds a customized Part.
pub fn percent_encode_path_segment(self) -> Form[src]
pub fn percent_encode_path_segment(self) -> Form[src]Configure this Form to percent-encode using the path-segment rules.
pub fn percent_encode_attr_chars(self) -> Form[src]
pub fn percent_encode_attr_chars(self) -> Form[src]Configure this Form to percent-encode using the attr-char rules.
pub fn percent_encode_noop(self) -> Form[src]
pub fn percent_encode_noop(self) -> Form[src]Configure this Form to skip percent-encoding