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
const req = new Request(url, {
method: "GET",
});
let resp = await fetch(req);
return { response: await resp.text() };