1
export async function main(url: string) {
2
const req = new Request(url, {
3
method: "GET",
4
});
5
let resp = await fetch(req);
6
7
return { response: await resp.text() };
8
}
const resp = await fetch(url);
return {
ok: resp.ok,
status: resp.status,
text: await resp.text(),
};
9
10
//native
11
12