1"use strict";
2
3const Cc = Components.classes;
4const Ci = Components.interfaces;
5
6let timer;
7
8const DELAY_MS = 10000;
9function handleRequest(request, response) {
10  response.processAsync();
11  timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
12  timer.init(() => {
13    response.setHeader("Content-Type", "text/html", false);
14    response.write("<body>Slow loading page for netmonitor test. You should never see this.</body>");
15    response.finish();
16  }, DELAY_MS, Ci.nsITimer.TYPE_ONE_SHOT);
17}
18