/// Send a given HEAD request.
Send a given HEAD request.
Send a given HEAD request .
pub fn head(&mut self, path: &str) -> Result<ResponseHeader> {
        let request = self.create_request(Method::HEAD, path)
            .add_header("Accept", "*/*");
        let mut rbuilder = ResponseHeaderBuilder::new();
        try!(self.perform_request(&request, &mut rbuilder));
        Ok(try!(rbuilder.header()))
    }
pub fn head ( & mut self , path : & str ) -> Result < ResponseHeader > { let request = self . create_request ( Method :: HEAD , path ) . add_header ( " " , " " ) ; let mut rbuilder = ResponseHeaderBuilder :: new ( ) ; try ! ( self perform_request ( request mut rbuilder ) ) ; Ok ( try ! ( rbuilder header ( ) ) ) }
Send a given HEAD request.
Send a given HEAD request .
&mut self
path
&str