mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
16 lines
489 B
Plaintext
16 lines
489 B
Plaintext
|
var timer = null;
|
||
|
|
||
|
function handleRequest(request, response)
|
||
|
{
|
||
|
response.processAsync();
|
||
|
timer = Components.classes["@mozilla.org/timer;1"]
|
||
|
.createInstance(Components.interfaces.nsITimer);
|
||
|
timer.initWithCallback(function()
|
||
|
{
|
||
|
response.setStatusLine(null, 200, "OK");
|
||
|
response.setHeader("Content-Type", "text/plain", false);
|
||
|
response.write("hello");
|
||
|
response.finish();
|
||
|
}, 3000 /* milliseconds */, Components.interfaces.nsITimer.TYPE_ONE_SHOT);
|
||
|
}
|