mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
eb218c0f33
Factoring out `dlint` upgrade from https://github.com/denoland/deno/pull/24034 as it requires us to change the lint step on mac to use ARM runners. --------- Co-authored-by: Luca Casonato <hello@lcas.dev> Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
14 lines
429 B
JavaScript
14 lines
429 B
JavaScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// deno-lint-ignore-file no-deprecated-deno-api
|
|
|
|
const listener = Deno.listen({ hostname: "127.0.0.1", port: 4506 });
|
|
postMessage("ready");
|
|
for await (const conn of listener) {
|
|
(async () => {
|
|
const requests = Deno.serveHttp(conn);
|
|
for await (const { respondWith } of requests) {
|
|
respondWith(new Response("Hello world"));
|
|
}
|
|
})();
|
|
}
|