Skip to main content
Module

x/aleph/types.d.ts>Context

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface Context
implements Record<string, unknown>
import { type Context } from "https://deno.land/x/aleph@1.0.0-alpha.36/types.d.ts";

Type Parameters

optional
DataType = unknown

Properties

readonly
connInfo: ConnInfo
readonly
params: Record<string, string>
readonly
headers: Headers
readonly
cookies: Cookies
readonly
htmlRewriter: HTMLRewriter

Methods

redirect(url: string | URL, code?: number): Response
json(data: DataType, init?: ResponseInit): Response
content(content: BodyInit, init?: ResponseInit & { contentType?: string; cacheControl?: "no-cache" | "immutable" | CacheControlOptions; }): Response