跳转到内容
简体中文

RouteRegistration

此内容尚不支持你的语言。

Defined in: src/http/backend/HttpServerBackend.ts:4

One route registration — supplied by the DSL after compilation.

readonly handler: (req) => HttpResponse | Promise<HttpResponse>

Defined in: src/http/backend/HttpServerBackend.ts:8

HttpRequest

HttpResponse | Promise<HttpResponse>


readonly method: HttpMethod

Defined in: src/http/backend/HttpServerBackend.ts:5


readonly pattern: string

Defined in: src/http/backend/HttpServerBackend.ts:7

Path pattern in the Fastify/Express style: /users/:id