Request module as dependency injection