Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function spoolHono

    • 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 through spool.handle: the route answers it, and the answer carries Spool-Delta or 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.

      Parameters

      Returns (
          c: SpoolHonoContext,
          next: () => Promise<void>,
      ) => Promise<Response | undefined>