http-link-header-1.0.3: 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 

data Link Source #

A single link.

Constructors

Link URI [(LinkParam, Text)] 

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 #