Skip to content

fetchHandler() ​

ts
function fetchHandler(webhooks): (request) => Promise<Response>;

Handler con la interfaz web estándar: recibe un Request y devuelve un Response. Sirve para Hono, Next.js, Deno y Bun.

Lee el cuerpo como texto, que es exactamente lo que se firmó.

Parameters ​

ParameterType
webhooksWebhooks

Returns ​

(request) => Promise<Response>