This library provides the ability to parse Link headers returned from APIs.
{ rel : LinkRel
, url : String
}
An individual link contains a rel
, the page
number and the URL.
The possible types of web links that this parser might produce.
parse : String -> List WebLink
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