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