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

x/aleph/server/types.ts>Context

The Full-stack Framework in Deno.
Go to Latest
interface Context
implements Record<string, any>
import { type Context } from "https://deno.land/x/aleph@1.0.0-beta.23/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, any> = Record<string, any>>() => Promise<Session<T>>

Returns the Session object.

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

Returns the next Response object.