Skip to main content
Module

x/aleph/server/types.ts>Context

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