Skip to main content
Module

x/aleph/types.d.ts>Context

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

Properties

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

Methods

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