fetch
Получить ресурс из сети. Он возвращает Promise, который разрешается на Response к этому Request, независимо от того, успешно ли это произошло.
const response = await fetch("http://my.json.host/data.json");
console.log(response.status); // e.g. 200
console.log(response.statusText); // e.g. "OK"
const jsonData = await response.json();
fetch(input: URL | Request | string, init?: RequestInit): Promise<Response>Тип возвращаемого значения
Promise<Response>
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/fetch