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.75.6/mod.ts";

Properties

close: () => void

Methods

use(...handler: Array<HandlerArgument>): Fastro
get(path: string, ...handler: Array<HandlerArgument>): Fastro
post(path: string, ...handler: Array<HandlerArgument>): Fastro
put(path: string, ...handler: Array<HandlerArgument>): Fastro
delete(path: string, ...handler: Array<HandlerArgument>): Fastro
patch(path: string, ...handler: Array<HandlerArgument>): Fastro
options(path: string, ...handler: Array<HandlerArgument>): Fastro
head(path: string, ...handler: Array<HandlerArgument>): Fastro
static(path: string, options?: { maxAge?: number; folder?: string; }): Fastro
page(
path: string,
element: Component,
...handler: Array<MiddlewareArgument>,
): Fastro
getStaticFolder(): string
getStaticPath(): string
getDevelopmentStatus(): boolean
push(
method?: string,
path?: string,
...handler: Array<HandlerArgument>,
): Fastro
onListen(handler: ListenHandler): void
finished(): Promise<void> | undefined