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.

Instances
Eq LinkParam Source # 
Instance details

Defined in Network.HTTP.Link.Types

Show LinkParam Source # 
Instance details

Defined in Network.HTTP.Link.Types

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.