diff --git a/http_server.ts b/http_server.ts index d60702f..3c90da7 100644 --- a/http_server.ts +++ b/http_server.ts @@ -195,6 +195,12 @@ export class HTTPServer { } } + close() { + if (this.server) { + this.server.close(); + } + } + error(handler: RouteHandler) { this.notFoundHandler = handler; }