Structured event-handler like http-handler