x/oak/mod.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface testing.MockContextOptions
import { type testing } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/mod.ts?s=testing.MockContextOptions";

const { MockContextOptions } = testing;

Options that can be set in a mock context.

Type Parameters

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

Properties

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