deno.land / std@0.157.0 / http / testdata / simple_server.ts
12345678910// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.// This is an example of a server that responds with an empty bodyimport { listenAndServe } from "../server.ts";
const addr = "0.0.0.0:4504";
console.log(`Simple server listening on http://localhost:4504`);
await listenAndServe(addr, () => new Response());
Version Info