x/oak/testing.ts

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Very Popular
Go to Latest
interface MockContextOptions
import { type MockContextOptions } from "https://dotland-vbqsvsrpfncg.deno-staging.dev/x/oak@v11.1.0/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]