add support for Response.type

This commit is contained in:
Muki Kiboigo
2025-09-18 22:25:49 -07:00
parent 823b7f0670
commit 25962326d2
5 changed files with 136 additions and 45 deletions

View File

@@ -25,6 +25,7 @@
testing.expectEqual("no-cache", response2.headers.get("cache-control"));
let response3 = new Response("Created", { status: 201, statusText: "Created" });
testing.expectEqual("basic", response3.type);
testing.expectEqual(201, response3.status);
testing.expectEqual("Created", response3.statusText);
testing.expectEqual(true, response3.ok);