import { default } from "https://deno.land/x/lume@v2.1.0/core/server.ts";
Constructors
new
default(options?: Partial<Options>)Methods
Add a listener to an event
dispatchEvent(event: ServerEvent)
Dispatch an event
handle(request: Request, info: Deno.ServeHandlerInfo): Promise<Response>
Handle a http request event
start(signal?: Deno.ServeOptions["signal"])
Start the server
stop()
Stops the server
use(...middleware: Middleware[])
Register one or more middlewares