jackfranklin/elm-parse-link-header/2.0.2

LinkHeader

This library provides the ability to parse Link headers returned from APIs.

Types

type LinkRel
= RelNext Int
| RelPrev Int
| RelFirst Int
| RelLast Int
| RelUnknown Int

The possible types of web links that this parser might produce.

Parsing

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