x/oak/testing.ts

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

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]
optional
body: ReadableStream
[src]