HandlerUpstream
Defined in: src/core/types.ts:165
Invoke a custom handler function directly. Useful for health checks, mock responses, or routes that don’t proxy to an upstream.
Properties
Section titled “Properties”handler()
Section titled “handler()”handler: (
c) =>Response|Promise<Response>
Defined in: src/core/types.ts:168
Handler function receiving the Hono context and returning a Response.
Parameters
Section titled “Parameters”Context
Returns
Section titled “Returns”Response | Promise<Response>
type:
"handler"
Defined in: src/core/types.ts:166