Estoy llamando a una API mediante deno de la siguiente manera:
console.log("hola mundo");
const response = await fetch("https://jsonplaceholder.typicode.com/todos/1");
const data = await response;
console.log(data);
Lo corro mediante
deno run --allow-net holamundo.ts
obtengo la siguiente salida en consola
hola mundo
Response {
url: "https://opentdb.com/api.php?amount=10&category=27&type=multiple",
status: 200,
statusText: "OK",
type_: "default",
trailer: Promise { <pending> },
headers: Headers { date: Tue, 02 Jun 2020 02:36:21 GMT, server: Apache, expires: Thu, 19 Nov 1981 08:52:00 GMT, cache-control: no-store, no-cache, must-revalida
te, post-check=0, pre-check=0, pragma: no-cache, access-control-allow-origin: *, set-cookie: PHPSESSID=uPleMEkfU4xh5PQF2ziRb0; path=/, vary: User-Agent, strict-tr
ansport-security: max-age=31536000, transfer-encoding: chunked, content-type: application/json },
body: Body { contentType: "application/json", locked: false, body: [Circular] },
type: "default",
redirected: false
}
¿Qué significa esa parteque dice body:[Circular]
?