This library provides the ability to parse Link headers returned from APIs.
The possible types of web links that this parser might produce.
Parse is given the string, which should be the entire link header from your API
and returns a list of WebLinks. This will be empty if no matches were found.
parse "https://api.github.com/user/193238/repos?per_page=100&page=2; rel="next"" == [WebLink (RelNext 2) "https://api.github.com/user/193238/repos?per_page=100&page=2"]
Tells you if a given WebLink is the next link.
Tells you if a given WebLink is the prev link.
Tells you if a given WebLink is first.
Tells you if a given WebLink is last.
Takes a LinkRel and finds the number for the page
getIntegerForRel (RelPrev 2) == 2
An individual link contains a
rel, thepagenumber and the URL.