AgentRequestHandler type

A request handler function signature that does not import Express types in its public API.

type AgentRequestHandler = (req: Request, res: WebResponse) => Promise<void>

Remarks

Runtime processing still depends on the request/response behavior expected by authorizeJWT and CloudAdapter.process. Use this with Express directly, or with adapter layers that provide compatible request/response objects.