Minimal interface covering the Deno operations this adapter needs. Inject this interface to test the adapter without real Deno.
serve(options: { port: number; hostname?: string; fetch: (request: Request) => Response | Promise<Response>; }): DenoServer
Starts an HTTP server.
optional
upgradeWebSocket(request: Request,options?: { protocol?: string; }): DenoWebSocketUpgrade
Performs an RFC 6455 handshake on an inbound request.
Optional so that a host injected before this seam existed still satisfies the interface; when absent, the adapter refuses upgrades with 501.