http-link-header-1.0.3.1: A parser and writer for the HTTP Link header as specified in RFC 5988 "Web Linking".
Safe HaskellSafe
LanguageHaskell2010

Network.HTTP.Link.Types

Description

The data type definitions for the HTTP Link header.

Synopsis

Documentation

data LinkParam Source #

The link attribute key.

Constructors

Rel 
Anchor 
Rev 
Hreflang 
Media 
Title 
Title' 
ContentType 
Other Text 

Instances

Instances details
Eq LinkParam Source # 
Instance details

Defined in Network.HTTP.Link.Types

Methods

(==) :: LinkParam -> LinkParam -> Bool

(/=) :: LinkParam -> LinkParam -> Bool

Show LinkParam Source # 
Instance details

Defined in Network.HTTP.Link.Types

Methods

showsPrec :: Int -> LinkParam -> ShowS

show :: LinkParam -> String

showList :: [LinkParam] -> ShowS

data Link Source #

A single link.

Constructors

Link URI [(LinkParam, Text)] 

Instances

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 #