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