pub fn try_clone(&self) -> Option<Request> {
        let body = if let Some(ref body) = self.body.as_ref() {
            if let Some(body) = body.try_clone() {
                Some(body)
            } else {
                return None;
            }
        } else {
            None
        };
        let mut req = Request::new(self.method().clone(), self.url().clone());
        *req.headers_mut() = self.headers().clone();
        req.body = body;
        Some(req)
    }
/// Attempts to clone the `Request`.
///
/// None is returned if a body is which can not be cloned. This can be because the body is a
/// stream.
Attempts to clone the `Request`.
None is returned if a body is which can not be cloned. This can be because the body is a
stream.
Attempts to clone the ` Request ` . None is returned if a body is which can not be cloned . This can be because the body is a stream .
pub fn try_clone(&self) -> Option<Request> {
        let body = if let Some(ref body) = self.body.as_ref() {
            if let Some(body) = body.try_clone() {
                Some(body)
            } else {
                return None;
            }
        } else {
            None
        };
        let mut req = Request::new(self.method().clone(), self.url().clone());
        *req.headers_mut() = self.headers().clone();
        req.body = body;
        Some(req)
    }
pub fn try_clone ( & self ) -> Option < Request > { let body = if let Some ( ref body ) = self . body . as_ref ( ) { if let Some ( body ) = body . try_clone ( ) { Some ( body ) } else { return None ; } } else { None } ; let mut req = Request :: new ( self . method ( ) . clone ( ) , self . url ( ) . clone ( ) ) ; * req . headers_mut ( ) = self . headers ( ) . clone ( ) ; req . body = body ; Some ( req ) }
Attempts to clone the `Request`.
Attempts to clone the ` Request ` .
&self
&self