Function spoolHono
-
spoolHono(
spool: Spool,
): (
c: SpoolHonoContext,
next: () => Promise<void>,
) => Promise<Response | undefined>Parameters
- spool: Spool
Returns (
c: SpoolHonoContext,
next: () => Promise<void>,
) => Promise<Response | undefined>
Hono middleware for a spool. Mount it with
app.use('*', spoolHono(spool)). Spool's own paths are answered before the routes run. A declared write runs throughspool.handle: the route answers it, and the answer carriesSpool-Deltaor the digest. A GET that a route answers with a 200 HTML page gets the envelope and the client tag. Every other response is left as the application made it.