pub fn resolve<R: RequestWithParams, T: 'static + Context + Send>( context_generator: fn(R) -> T, request: R, matched_route: MatchedRoute<'_, T>, ) -> impl Future<Output = Result<T::Response, Error>> + Send