import { DeployWorker } from "https://deno.land/x/dectyl@0.10.7/mod.ts";
Send a request into the program and resolve with the resulting Response
and additional information about the request.
For example:
const helloWorld = await createWorker("./hello_world.ts");
await helloWorld.run(async () => {
const [response, info] = await helloWorld.fetch("/");
// make assertions against the response
});
Parameters
optional
requestInit: RequestInitoptional
remoteAddr: Deno.NetAddr = [UNSUPPORTED]