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
Go to Latest
class default
import { default } from "https://deno.land/x/lume@v1.14.1/core/server.ts";

Constructors

new
default(options: Options)

Properties

middlewares: Middleware[]
options: Options

Methods

Add a listener to an event

Dispatch an event

handle(request: Request, connInfo: ConnInfo): Promise<Response>

Handle a http request event

serveFile(request: Request): Promise<Response>

Server a static file

Start the server

Stops the server

use(...middleware: Middleware[])

Register one or more middlewares