Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fsrouter/deps.ts>http.Server#close

A file system based router for Deno.
Go to Latest
method http.Server.prototype.close
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { Server } = http;

Immediately close the server listeners and associated HTTP connections.

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