import { Context } from "https://dotland.deno.dev/x/abc@v1.2.4/context.ts";
Constructors
new
Context(opts: ContextOptions)new
Context(c: Context)new
Context(optionsOrContext: ContextOptions | Context)Properties
app: Application
readonly
cookies: Cookiesrequest: ServerRequest
response: Response & { headers: Headers; }
Methods
file(filepath: string): Promise<void>
get(key: string | symbol): unknown
redirect(url: string, code?): void
Redirects a response to a specific URL. the code
defaults to 302
if omitted
Renders a template with data and sends a text/html response with status code. renderer must be registered first.
set(key: string | symbol, val: unknown): void