mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -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"));
|
|
}
|
|
})();
|
|
}
|