tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

slow.sjs (399B)


      1 function handleRequest(request, response) {
      2   response.processAsync();
      3 
      4   let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
      5   timer.init(
      6     function () {
      7       response.finish();
      8     },
      9     5000,
     10     Ci.nsITimer.TYPE_ONE_SHOT
     11   );
     12 
     13   response.setStatusLine(null, 200, "OK");
     14   response.setHeader("Content-Type", "text/plain", false);
     15   response.write("Start of the content.");
     16 }