Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aleph/server/types.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-beta.42/server/types.ts";

Properties

readonly
optional
connInfo: ConnInfo

The request connection info.

readonly
params: Record<string, string>

The params of dynamic routes.

readonly
cookies: Cookies

The cookies from client.

readonly
htmlRewriter: HTMLRewriter

The HtmlRewriter to rewrite the html output.

getSession: <T extends Record<string, unknown> = Record<string, unknown>>() => Promise<Session<T>>

Returns the Session object.

next: () => Promise<Response> | Response

Returns the next Response object.