Implement the eventsource generator
Raise an error if we get a wrong content type