diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-09-06 08:15:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 08:15:00 +1000 |
commit | 7937ae3f2f5a8c11f52c42676ba56d12fcb59aeb (patch) | |
tree | 1bfb9d994ef638bc26dc9c643e6eca35c2a7ccd9 /tests/testdata/workers/http_worker.js | |
parent | 6919f33216bb1db2b3596ca6f2f9c2c54f322720 (diff) |
chore(net): soft-remove `Deno.serveHttp()` (#25451)
Towards #22079
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/testdata/workers/http_worker.js')
-rw-r--r-- | tests/testdata/workers/http_worker.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testdata/workers/http_worker.js b/tests/testdata/workers/http_worker.js index c617e2e92..27bc9c038 100644 --- a/tests/testdata/workers/http_worker.js +++ b/tests/testdata/workers/http_worker.js @@ -6,6 +6,7 @@ const listener = Deno.listen({ hostname: "127.0.0.1", port: 4506 }); postMessage("ready"); for await (const conn of listener) { (async () => { + // @ts-ignore `Deno.serveHttp()` was soft-removed in Deno 2. const requests = Deno.serveHttp(conn); for await (const { respondWith } of requests) { respondWith(new Response("Hello world")); |