Skip to content

basalt / http/src / runRoute

Function: runRoute() ​

> runRoute(definition, request, reply, pipeline?): Promise<unknown>

Defined in: http/src/pipeline.ts:131

The framework-neutral request pipeline every adapter shares: establishes the request context (id, correlation, scoped container), runs enrichers then guards, validates body/query/params, and invokes the handler. Returns the handler's value (the adapter sends it unless the handler already replied).

Parameters ​

definition ​

BasaltRoute

request ​

HttpRequest

reply ​

HttpReply

pipeline? ​

RoutePipeline = {}

Returns ​

Promise<unknown>

Released under the MIT License.