Skip to main content
Module

x/fast/mod.ts>Context

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

Constructors

new
Context(unnamed 0: ContextInit)

Properties

params: Record<string, string>
readonly
path
readonly
query
request: Request
state: State
readonly
url

Methods

assert(
expr: unknown,
status?,
message?,
init?: ResponseInit,
): asserts expr

Validate and decode request body.

redirect(pathname: string, status?)
throw(
status?,
message?,
init?: ResponseInit,
)