Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
The data type definitions for the HTTP Link header.
Synopsis
Documentation
A single link containing some representation of a URL.
Instances
Eq uri => Eq (Link uri) Source # | |
Show uri => Show (Link uri) Source # | |
IsURI uri => ToHttpApiData [Link uri] Source # | |
Defined in Network.HTTP.Link toUrlPiece :: [Link uri] -> Text # toEncodedUrlPiece :: [Link uri] -> Builder # toHeader :: [Link uri] -> ByteString # toQueryParam :: [Link uri] -> Text # | |
IsURI uri => ToHttpApiData (Link uri) Source # | |
Defined in Network.HTTP.Link toUrlPiece :: Link uri -> Text # toEncodedUrlPiece :: Link uri -> Builder # toHeader :: Link uri -> ByteString # toQueryParam :: Link uri -> 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 the orphan instance:
instance IsURI Modern.URI where uriFromText = left displayException . mkURI uriToText = render
Since: 1.1.0