http-link-header-1.1.1: A parser and writer for the HTTP Link header per RFC 5988

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 GLink uri Source #

A single link containing some representation of a URL.

Since: 1.1.0

Constructors

Link uri [(LinkParam, Text)] 

class IsURI uri where Source #

Types that can represent URLs.

For example, to parse links containing @Text.URI.URI@ from the @modern-uri@ package, simply define:

   instance IsURI Modern.URI where
       uriFromText = left displayException . mkURI

Since: 1.1.0

Instances
IsURI Text Source # 
Instance details

Defined in Network.HTTP.Link.Types

IsURI URI Source # 
Instance details

Defined in Network.HTTP.Link.Types

type Link = GLink URI Source #

A single link containing a network-uri URI. Most of this library is specialized to this case.

href :: Link -> URI Source #

Extracts the URI from the link.

linkParams :: Link -> [(LinkParam, Text)] Source #

Extracts the parameters from the link.