pub fn create_response_with_body<T>( request: &Request<T>, generate_body: impl FnOnce() -> T, ) -> Result<Response<T>>
Create a response for the request with a custom body.