Skip to main content

clone_unwrap

Function clone_unwrap 

Source
fn clone_unwrap(request: &Request) -> Request
Expand description

Clones a reqwest::Request.

ยงSafety

This panics if the request cannot be cloned. This should only happen if the request body is a reqwest stream. We disable the stream feature, so the body should never be a stream.

See https://github.com/seanmonstar/reqwest/blob/de5dbb1ab849cc301dcefebaeabdf4ce2e0f1e53/src/async_impl/body.rs#L168