Injects a method for responses