attoparsec-uri-0.0.1: URI parser / printer using attoparsec

Safe HaskellNone
LanguageHaskell2010

Data.URI

Documentation

data URI Source

Constructors

URI 

Fields

uriScheme :: !(Maybe Text)

the scheme without the colon - https://hackage.haskell.org/ has a scheme of https

uriSlashes :: !Bool

are the slashes present? - https://hackage.haskell.org/ is True

uriAuthority :: !URIAuth
 
uriPath :: !(Vector Text)

slash-separated list - https://hackage.haskell.org/foo is ["foo"]

uriQuery :: !(Vector (Pair Text (Maybe Text)))

list of key-value pairs - https://hackage.haskell.org/?foo=bar&baz&qux= is [("foo", Just "bar"), ("baz", Nothing), ("qux", Just "")]

uriFragment :: !(Maybe Text)

uri suffix - https://hackage.haskell.org/#some-header is Just "some-header"

parseURI :: Parser URI Source