deno/tests/specs/cli/otel_basic/fetch.ts
2025-03-13 17:47:00 +09:00

11 lines
351 B
TypeScript

async function request(url: string, options: any) {
try {
await (await fetch(url, options)).text();
} catch {
}
}
await request("http://localhost:4545/echo.ts");
await request("http://localhost:4545/not-found");
await request("http://unreachable-host.abc/");
await request("http://localhost:4545/echo.ts", { signal: AbortSignal.abort() });