Trait hyperdriver::body::TryCloneRequest

source ·
pub trait TryCloneRequest {
    // Required method
    fn try_clone_request(&self) -> Option<Self>
       where Self: Sized;
}
Expand description

Extension trait to help clone a request that contains a Body.

Required Methods§

source

fn try_clone_request(&self) -> Option<Self>
where Self: Sized,

Try to clone the request. If the body can’t be cloned, None is returned.

Implementations on Foreign Types§

source§

impl TryCloneRequest for Request<Body>

Implementors§