mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 08:39:09 -05:00
30bcf6a2ea
Ref #4467
This reverts commit 60cee4f045
.
9 lines
321 B
TypeScript
9 lines
321 B
TypeScript
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
// This is an example of a server that responds with an empty body
|
|
import { serve } from "../server.ts";
|
|
|
|
const addr = "0.0.0.0:4502";
|
|
console.log(`Simple server listening on ${addr}`);
|
|
for await (const req of serve(addr)) {
|
|
req.respond({});
|
|
}
|