Function parseLinkHeader

  • Parses the link header(s) and returns an array of LinkEntry objects.

    Parameters

    • link: string | string[] = []

      A single link header or an array of link headers

    Returns LinkEntry[]

    A LinkEntry array, LinkEntry contains a link and a params Record<string,string>