kinetex - v1.0.0-rc.1
    Preparing search index...

    Function parseLinkHeaderNext

    • Parse a Link header and extract the URL for rel="next".

      Handles both double and single quoted rel values per RFC 5988. Also handles multiple rel values (e.g., rel="next alternate").

      Parameters

      • linkHeader: string

        The Link header value to parse

      Returns string | null

      The URL for the "next" relation, or null if not found

      const nextUrl = parseLinkHeaderNext('<https://api.example.com/items?page=2>; rel="next"');
      // Returns: "https://api.example.com/items?page=2"