Struct curl::easy::Form [−][src]
pub struct Form { /* fields omitted */ }
Multipart/formdata for an HTTP POST request.
This structure is built up and then passed to the Easy::httppost
method to
be sent off with a request.
Methods
impl Form
[src]
impl Form
pub fn new() -> Form
[src]
pub fn new() -> Form
Creates a new blank form ready for the addition of new data.
pub fn part<'a, 'data>(&'a mut self, name: &'data str) -> Part<'a, 'data>
[src]
pub fn part<'a, 'data>(&'a mut self, name: &'data str) -> Part<'a, 'data>
Prepares adding a new part to this Form
Note that the part is not actually added to the form until the add
method is called on Part
, which may or may not fail.
Trait Implementations
impl Debug for Form
[src]
impl Debug for Form
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for Form
[src]
impl Drop for Form