import { Context } from "https://deno.land/x/abc@v1.1.0/mod.ts";
Methods
file(filepath: string): Promise<void>
get(key: string | symbol): unknown
htmlBlob(b: Uint8Array | Deno.Reader, code?: Status): void
Sends an HTTP blob response with status code.
json(v: Record<string, any> | string, code?: Status): void
redirect(url: string, code?): void
Redirects a response to a specific URL. the code
defaults to 302
if omitted
render<T>(): Promise<void>
name: string,
data?: T,
code?: Status,
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
string(v: string, code?: Status): void