import { Context } from "https://deno.land/x/abc@v0.1.6/mod.ts";
Constructors
new
Context(options: ContextOptions)Properties
private
_abc: Abcprivate
_request: ServerRequestprivate
_response: Responseprivate
_url: URLabc: Abc
request: ServerRequest
response: Response
url: URL
Methods
private
writeContentType(v: string)file(filepath: string)
json(v: Record<string, any> | string, code?)
render<T>()
name: string,
data?,
code?,
Renders a template with data and sends a text/html response with status code. Abc.renderer must be registered first.
string(v: string, code?)