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.4/types.d.ts";

Properties

readonly
params: Record<string, string>
readonly
headers: Headers
readonly
HTMLRewriter: { on: (selector: string, handlers: HTMLRewriterHandlers) => void; }

Methods

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