mirror of
https://github.com/denoland/deno.git
synced 2025-03-12 07:07:43 -04:00

Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com> Co-authored-by: Luca Casonato <hello@lcas.dev>
10 lines
196 B
TypeScript
10 lines
196 B
TypeScript
const server = Deno.serve(
|
|
{ port: 8080, onListen: () => {} },
|
|
() => new Response("foo"),
|
|
);
|
|
|
|
for (let i = 0; i < 3; i++) {
|
|
await fetch(`http://localhost:8080`);
|
|
}
|
|
|
|
await server.shutdown();
|