/// Sends the request and reads the response body into the response object.
Sends the request and reads the response body into the response object.
Sends the request and reads the response body into the response object .
pub fn send(mut self) -> Result<Response> {
        self.handle.http_headers(self.headers)?;
        self.handle.url(&self.url)?;
        match self.body {
            Some(ref body) => {
                let mut body: &[u8] = &body[..];
                self.handle.upload(true)?;
                self.handle.in_filesize(body.len() as u64)?;
                handle_request(&mut self.handle, &mut |buffer| {
                    body.read(buffer).unwrap_or(0)
                })
            }
            None => handle_request(&mut self.handle, &mut |_| 0),
        }
    }
pub fn send ( mut self ) -> Result < Response > { self . handle . http_headers ( self . headers ) ? ; self . handle . url ( & self . url ) ? ; match self . body { Some ( ref body ) => { let mut body : & [ u8 ] = & body [ .. ] ; self . handle . upload ( true ) ? ; self . handle . in_filesize ( body . len ( ) as u64 ) ? ; handle_request ( & mut self . handle , & mut | buffer | { body . read ( buffer ) . unwrap_or ( 0 ) } ) } None => handle_request ( & mut self . handle , & mut | _ | 0 ) , } }
Sends the request and reads the response body into the response object.
Sends the request and reads the response body into the response object .
mut self