injecting request into closures