Skip to main content
Module

x/fast/mod.ts>Application

Small web framework with near-native performance.
Go to Latest
class Application
Re-export
import { Application } from "https://deno.land/x/fast@4.0.0-alpha.2/mod.ts";

Constructors

new
Application()

Properties

handle: (request: Request) => unknown
serve: (opts?: ServeInit) => unknown

Methods

use(...middlewares: Middleware[])
interface Application
Re-export
import { type Application } from "https://deno.land/x/fast@4.0.0-alpha.2/mod.ts";

Methods

get(path: string, ...middlewares: Middleware[]): Application
post(path: string, ...middlewares: Middleware[]): Application
put(path: string, ...middlewares: Middleware[]): Application
patch(path: string, ...middlewares: Middleware[]): Application
delete(path: string, ...middlewares: Middleware[]): Application
options(path: string, ...middlewares: Middleware[]): Application
head(path: string, ...middlewares: Middleware[]): Application
use(...middlewares: Middleware[]): Application
handle(request: Request): Promise<Response>
serve(init?: ServeInit): Promise<void>