Skip to main content
Module

x/oak/context.ts>ContextOptions

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Extremely Popular
Latest
interface ContextOptions
import { type ContextOptions } from "https://deno.land/x/oak@v16.0.0/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