infinity-fetch - v1.5.0
    Preparing search index...

    Function parseLinkHeader

    • Parses an RFC 5988 Link header into a { rel: url } map.

      Parameters

      • header: string | null | undefined

      Returns Record<string, string>

      parseLinkHeader('<https://api/x?page=2>; rel="next", <https://api/x?page=9>; rel="last"');
      // { next: 'https://api/x?page=2', last: 'https://api/x?page=9' }