Module

x/oak/testing.ts>MockContextOptions

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

Options that can be set in a mock context.

Type Parameters

R extends string
optional
P extends RouteParams<R> = RouteParams<R>
optional
S extends State = Record<string, any>

Properties

optional
app: Application<S>
optional
ip: string
optional
method: string
optional
params: P
optional
path: string
optional
state: S
optional
headers: [string, string][]
optional
body: ReadableStream