I've renamed the method to `validateRequest` as it also validates the HTTP method. The inline comments already explain what it does.