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

x/fastro/http/server/mod.ts>default

Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
Go to Latest
class default
implements Fastro
import { default } from "https://deno.land/x/fastro@v0.85.1/http/server/mod.ts";

Constructors

new
default(options?: Record<string, any>)

Properties

add: (
method: string,
path: string,
...handler: Handler[],
) => unknown
group: (mf: ModuleFunction) => unknown
serve: (options?: { port?: number; onListen?: ListenHandler; }) => unknown
serverOptions: Record<string, any>
shutdown: () => unknown

Methods

delete(path: string, ...handler: Array<Handler>): Fastro
get(path: string, ...handler: Array<Handler>): Fastro
getNonce(): string
head(
path: string,
handler: Handler,
...middleware: Array<Handler>,
): Fastro
options(path: string, ...handler: Array<Handler>): Fastro
page<T = any>(
path: string,
page: Page<T>,
...middleware: Array<Handler>,
): Fastro
patch(path: string, ...handler: Array<Handler>): Fastro
post(path: string, ...handler: Array<Handler>): Fastro
put(path: string, ...handler: Array<Handler>): Fastro
static(path: string, options?: { maxAge?: number; folder?: string; referer?: boolean; })
use(...handlers: Handler[]): Fastro