This commit is contained in:
2026-01-27 10:08:07 -05:00
parent c2f08e9140
commit de1dcaceef
5 changed files with 348 additions and 0 deletions

6
test_data/fetch.ts Normal file
View File

@@ -0,0 +1,6 @@
const response = fetch("https://httpbin.org/get");
console.log("OK:", response.ok);
console.log("Status:", response.status);
console.log("Body:", response.text());
console.log("Content-Type:", response.headers.get("content-type"));

6
test_data/fetch_demo.ts Normal file
View File

@@ -0,0 +1,6 @@
const response = fetch("https://httpbin.org/get");
console.log("OK:", response.ok);
console.log("Status:", response.status);
console.log("Body:", response.text());
console.log("Content-Type:", response.headers.get("content-type"));