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

x/oak/context.ts>ContextOptions

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
interface ContextOptions
import { type ContextOptions } from "https://deno.land/x/oak@v17.1.3/context.ts";

Options that can be supplied when creating a Context

Type Parameters

optional
S extends AS = State
optional
AS extends State = Record<string, any>

Properties

optional
jsonBodyReplacer: (
key: string,
value: unknown,
context: Context<S>,
) => unknown
optional
jsonBodyReviver: (
key: string,
value: unknown,
context: Context<S>,
) => unknown
optional
secure: boolean