qfetch
    Preparing search index...

    Function pipeline

    • Composes middleware executors in left-to-right order (pipeline style).

      Parameters

      Returns MiddlewareExecutor

      A function that takes a base fetch and returns the pipelined fetch function

      The first middleware listed wraps outermost (runs first on request, last on response). Request flow: first middleware → ... → last middleware → fetch. Response flow: fetch → last middleware → ... → first middleware.

      const qfetch = pipeline(withLogger(), withRetry())(fetch);
      // Request: logger → retry → fetch