0
Send GET Request
One script reply has been approved by the moderators Verified
Created by armancedinari 899 days ago Viewed 21510 times
0
Submitted by jaller94 Deno
Verified 835 days ago
1
export async function main(url: string) {
2
  const resp = await fetch(url);
3

4
  return {
5
    ok: resp.ok,
6
    status: resp.status,
7
    text: await resp.text(),
8
  };
9
}
10

Other submissions