ElysiaEntitlementsHandler
Defined in: src/adapters/elysia-shared.ts:21
A web-standard fetch handler with engine + openapi() attached.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
C extends AnyCatalog |
AnyCatalog |
ElysiaEntitlementsHandler(request): Promise<Response>;Defined in: src/adapters/elysia-shared.ts:23
Handle a request (what Elysia.mount(path, handler) calls).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
Request |
Returns
Section titled “Returns”Promise<Response>
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
engine |
Entitlements<C> |
The engine (given or constructed). | src/adapters/elysia-shared.ts:25 |
Methods
Section titled “Methods”close()
Section titled “close()”close(): void;Defined in: src/adapters/elysia-shared.ts:29
Stop the sweep timer.
Returns
Section titled “Returns”void
openapi()
Section titled “openapi()”openapi(): Record<string, unknown>;Defined in: src/adapters/elysia-shared.ts:27
The HTTP API as an OpenAPI 3.1 document (also served at {basePath}/api/openapi.json).
Returns
Section titled “Returns”Record<string, unknown>