Module

std/http/server.ts>Server#close

Deno standard library
Go to Latest
method Server.prototype.close
import { Server } from "https://dotland.deno.dev/std@0.181.0/http/server.ts";

Immediately close the server listeners and associated HTTP connections.

Throws a server closed error if called after the server has been closed.