Starts an HTTP server.
Server options
Optionalhostname?: stringOptionalonListen?: (address: { hostname: string; port: number }) => voidReplaces Deno.serve's own startup banner. Supplied by the local
diagnostics listener so its line names the devtool rather than
reading as a second, unexplained application listener; omitted by the
application adapter, which keeps the default banner.
The Deno HTTP server
OptionalupgradePerforms 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.
The native, undisturbed upgrade request
Optionaloptions: { protocol?: string }
Handshake options; protocol echoes a negotiated subprotocol
The server-side socket and the 101 response to return
Minimal interface covering the Deno operations this adapter needs. Inject this interface to test the adapter without real Deno.