Module

x/lume/core/server.ts>default

🔥 Static site generator for Deno 🦕
Very Popular
Latest
class default
import { default } from "https://dotland.deno.dev/x/lume@v2.3.3/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