import { Context } from "https://deno.land/x/abc@v0.2.10/context.ts";
Constructors
new
Context(opts: { app: Application; r: ServerRequest; })Properties
Methods
private
writeContentType(v: string): voidbody(): Promise<Record<string, unknown>>
file(filepath: string): Promise<void>
htmlBlob(b: Uint8Array | Deno.Reader, code?: Status): void
Sends an HTTP blob response with status code.
redirect(url: string, code?): void
Redirects a response to a specific URL. the code
defaults to 302
if omitted