deno.land / std@0.157.0 / http / testdata / simple_server.ts

simple_server.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
// 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());
std

Version Info

Tagged at
a year ago