RouteConfig
Defined in: src/core/types.ts:145
Individual route configuration.
Type Parameters
Section titled “Type Parameters”TBindings
Section titled “TBindings”TBindings = Record<string, unknown>
Worker bindings type, propagated from GatewayConfig.
Properties
Section titled “Properties”metadata?
Section titled “metadata?”
optionalmetadata:Record<string,unknown>
Defined in: src/core/types.ts:153
Route-level metadata for logging/observability
methods?
Section titled “methods?”
optionalmethods:HttpMethod[]
Defined in: src/core/types.ts:149
Allowed HTTP methods. Defaults to all.
path:
string
Defined in: src/core/types.ts:147
Route path pattern (Hono syntax, e.g. “/users/:id“)
pipeline
Section titled “pipeline”pipeline:
PipelineConfig<TBindings>
Defined in: src/core/types.ts:151
Pipeline to process this route