Module

x/lume/core/server.ts>default

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

Constructors

new
default(options?: Partial<Options>)

Properties

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