I've also tried 

... = new nsHttpServer();
and
... = new nsIHttpServer();

Both of those error out as   EXCEPTION: ns(I)HttpServer is not defined
    at: test-carddav-connector.js line 44