http-link-header-1.0.3: A parser and writer for the HTTP Link header as specified in RFC 5988 "Web Linking".
Network.HTTP.Link.Types
Description
The data type definitions for the HTTP Link header.
Synopsis
data LinkParam Source #
The link attribute key.
Constructors
Instances
Methods
(==) :: LinkParam -> LinkParam -> Bool #
(/=) :: LinkParam -> LinkParam -> Bool #
showsPrec :: Int -> LinkParam -> ShowS #
show :: LinkParam -> String #
showList :: [LinkParam] -> ShowS #
data Link Source #
A single link.
(==) :: Link -> Link -> Bool #
(/=) :: Link -> Link -> Bool #
showsPrec :: Int -> Link -> ShowS #
show :: Link -> String #
showList :: [Link] -> ShowS #
href :: Link -> URI Source #
Extracts the URI from the link.
linkParams :: Link -> [(LinkParam, Text)] Source #
Extracts the parameters from the link.
lnk :: String -> [(LinkParam, Text)] -> Maybe Link Source #