CreateFetchHandlerResult
Defined in: server/create-fetch-handler.ts:99
Return shape of createFetchHandler.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
core |
FlagsCore |
The underlying admin core (handy for tests, CLI, and standalone wiring). | server/create-fetch-handler.ts:103 |
Methods
Section titled “Methods”close()
Section titled “close()”close(): Promise<void>;Defined in: server/create-fetch-handler.ts:110
Stop background work (the OFREP SSE poller and its open streams). Idempotent.
Returns
Section titled “Returns”Promise<void>
fetch()
Section titled “fetch()”fetch(request): Promise<Response>;Defined in: server/create-fetch-handler.ts:101
Web-standard request handler.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
request |
Request |
Returns
Section titled “Returns”Promise<Response>
openapi()
Section titled “openapi()”openapi(): Record<string, unknown>;Defined in: server/create-fetch-handler.ts:108
The admin API as an OpenAPI 3.1 document (also served at {basePath}/api/openapi.json).
Merge it into your host app’s docs — e.g. Elysia @elysiajs/openapi references.
Returns
Section titled “Returns”Record<string, unknown>