Ir al contenido
Español

CompiledRoute

Esta página aún no está disponible en tu idioma.

CompiledRoute = object

Defined in: src/http/Route.ts:12

A compiled HTTP route — the Route-DSL reduces to a list of these (plus CompiledWebsocketRoutes), which the HTTP backend registers in its native routing table.

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

Defined in: src/http/Route.ts:16

HttpRequest

Promise<HttpResponse> | HttpResponse


readonly kind: "http"

Defined in: src/http/Route.ts:13


readonly method: HttpMethod

Defined in: src/http/Route.ts:14


readonly pattern: string

Defined in: src/http/Route.ts:15