Skip to content

CreateFetchHandlerResult

Defined in: server/create-fetch-handler.ts:99

Return shape of createFetchHandler.

Property Type Description Defined in
core FlagsCore The underlying admin core (handy for tests, CLI, and standalone wiring). server/create-fetch-handler.ts:103
close(): Promise<void>;

Defined in: server/create-fetch-handler.ts:110

Stop background work (the OFREP SSE poller and its open streams). Idempotent.

Promise<void>


fetch(request): Promise<Response>;

Defined in: server/create-fetch-handler.ts:101

Web-standard request handler.

Parameter Type
request Request

Promise<Response>


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.

Record<string, unknown>