@drupflare/spool - v0.1.0
    Preparing search index...

    Function toNodeListener

    • Bridges node:http to a Fetch handler, with no dependency. The result is also an Express middleware: when the handler returns undefined and a next callback exists it is called, otherwise the reply is a 404. A handler that throws gets a 500 (or the socket is destroyed if headers are already out).

      Parameters

      Returns (
          req: IncomingMessage,
          res: ServerResponse,
          next?: (error?: unknown) => void,
      ) => Promise<void>