kvarn::prelude::utils

Function empty_clone_response

source
pub fn empty_clone_response<T>(response: &Response<T>) -> Response<()>
Expand description

Clones a Response, discarding the body.

Use Response::map() to add a body.