ElysiaWebhooksHandler
Defined in: src/adapters/elysia-shared.ts:15
A web-standard fetch handler with core + dispatcher + openapi() attached.
ElysiaWebhooksHandler(request): Promise<Response>;Defined in: src/adapters/elysia-shared.ts:17
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 |
|---|---|---|---|
core |
WebhooksCore |
The underlying core (handy for publish(), tests, CLI, and standalone wiring). |
src/adapters/elysia-shared.ts:19 |
dispatcher |
| Dispatcher | null |
The started dispatcher, or null when dispatcher: false. |
src/adapters/elysia-shared.ts:21 |
Methods
Section titled “Methods”close()
Section titled “close()”close(): Promise<void>;Defined in: src/adapters/elysia-shared.ts:25
Stop the dispatcher this panel started.
Returns
Section titled “Returns”Promise<void>
openapi()
Section titled “openapi()”openapi(): Record<string, unknown>;Defined in: src/adapters/elysia-shared.ts:23
The admin API as an OpenAPI 3.1 document (also served at {basePath}/api/openapi.json).
Returns
Section titled “Returns”Record<string, unknown>