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

x/lume/core/server.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class default
import { default } from "https://deno.land/x/lume@v2.4.1/core/server.ts";

Constructors

new
default(options?: Partial<Options>)

Properties

readonly
addr: Deno.Addr | undefined

The local address this server is listening on.

middlewares: Middleware[]
options: Options

Methods

Add a listener to an event

Dispatch an event

handle(request: Request, info: Deno.ServeHandlerInfo): Promise<Response>

Handle a http request event

start(signal?: Deno.ServeOptions["signal"])

Start the server

Stops the server

use(...middleware: Middleware[])

Register one or more middlewares