Skip to main content
Module

x/fastro/mod.ts>Fastro

Fast and simple web application framework for deno
Go to Latest
interface Fastro
import { type Fastro } from "https://deno.land/x/fastro@v0.84.7/mod.ts";

Properties

serve: (options?: { port?: number; onListen?: ListenHandler; }) => Promise<void>
shutdown: () => void
serverOptions: Record<string, any>

Methods

get(path: string, ...handler: Array<Handler>): Fastro
post(path: string, ...handler: Array<Handler>): Fastro
put(path: string, ...handler: Array<Handler>): Fastro
patch(path: string, ...handler: Array<Handler>): Fastro
delete(path: string, ...handler: Array<Handler>): Fastro
options(path: string, ...handler: Array<Handler>): Fastro
head(path: string, ...handler: Array<Handler>): Fastro
page<T = any>(
path: string,
page: Page<T>,
...middleware: Array<Handler>,
): Fastro
add(
method: string,
path: string,
handler: Handler,
): Fastro
use(...handler: Array<Handler>): Fastro
group(mf: ModuleFunction): Promise<Fastro>