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").
rel="next alternate"
The Link header value to parse
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" Copy
const nextUrl = parseLinkHeaderNext('<https://api.example.com/items?page=2>; rel="next"');// Returns: "https://api.example.com/items?page=2"
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").