function Ctx
Since 0.2.0
Ctx(): ParamSource<IRequestContext>

Binds the active request context — for a handler that sets its own status code, adds a header, or returns a streaming response.

Carries the internal marker that distinguishes this built-in from an application-defined custom source also named context.

Return Type

ParamSource<IRequestContext>

A request-context source

Usage

import { Ctx } from "decorator-plugin/src/index.ts";