MCPcopy Index your code
hub / github.com/oakserver/oak / fn

Function fn

http_server_node.test.ts:73–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71Deno.test({
72 name: "NodeRequest",
73 async fn() {
74 const nodeRequest = new NodeRequest(
75 ...createMockReqRes("/", {}, "POST", "127.0.0.1"),
76 );
77 assertEquals(nodeRequest.url, `/`);
78 const response = new Response("hello deno");
79 await nodeRequest.respond(response);
80 assertEquals(writeHeadCalls, [[200, ""]]);
81 },
82});
83
84Deno.test({

Callers

nothing calls this directly

Calls 7

respondMethod · 0.95
listenMethod · 0.95
closeMethod · 0.95
createMockReqResFunction · 0.85
fetchFunction · 0.85
textMethod · 0.80
respondMethod · 0.65

Tested by

no test coverage detected