TypeScript API / contentia/server/mcp / FetchHandler
Type Alias: FetchHandler
ts
type FetchHandler = (request) => Promise<Response>;A WHATWG fetch handler — the same shape contentiaApi(...).fetch and buildJsonApi(...).fetch expose, and what globalThis.fetch degrades to when the target is remote.
Parameters
| Parameter | Type |
|---|---|
request | Request |
Returns
Promise<Response>