0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-12 07:07:43 -04:00
deno/tests/specs/cli/otel_basic/http_metric.ts

11 lines
196 B
TypeScript
Raw Normal View History

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();