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

    Function spoolExpress

    • Express middleware for a spool. Mount it with app.use before the routes. Spool's own paths are answered here. A declared write runs through spool.handle: the application's handler answers it, and the answer carries Spool-Delta or the digest. A GET that the application answers with a 200 HTML page gets the envelope and the client tag. Every other request reaches the application untouched.

      Parameters

      Returns (req: IncomingMessage, res: ServerResponse, next: Next) => Promise<void>