summaryrefslogtreecommitdiffstats
path: root/devtools/shared/commands/resource/tests/sse_backend.sjs
blob: 777520577ac79d5b0ba57f6016106a16b79890d6 (plain)
1
2
3
4
5
6
7
8
"use strict";

function handleRequest(request, response) {
  response.processAsync();
  response.setHeader("Content-Type", "text/event-stream");
  response.write("data: Why so serious?\n\n");
  response.finish();
}