Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pogo/dependencies.ts>http.Server#close

Server framework for Deno
Latest
method http.Server.prototype.close
import { http } from "https://deno.land/x/pogo@v0.6.0/dependencies.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.