- host :: Uri :-> String
- path :: Uri :-> FilePath
- pathAndQuery :: Uri :-> String
- toUri :: String -> Uri
- parseUri :: String -> Either ParseError Uri
- parseAbsoluteUri :: String -> Either ParseError Uri
- parseAuthority :: String -> Either ParseError Authority
- parsePath :: String -> Either ParseError Path
- parseHost :: String -> Either ParseError Host
- pDigit :: CharParser st Char
- pAlphanum :: CharParser st Char
- pAlpha :: CharParser st Char
- pUnreserved :: GenParser Char st Char
- pReserved :: GenParser Char st Char
- pGenDelims :: CharParser st Char
- pSubDelims :: CharParser st Char
- pPctEncoded :: GenParser Char st String
- pHex :: GenParser Char st String
- pUri :: GenParser Char st Uri
- pScheme :: GenParser Char st String
- pAuthority :: GenParser Char st Authority
- pUserinfo :: GenParser Char st String
- pHost :: GenParser Char st Host
- pIPv4address :: GenParser Char st [Int]
- pDecOctet :: GenParser Char st Int
- pRegName :: GenParser Char st String
- pHostname :: GenParser Char st [String]
- pDomainlabel :: GenParser Char st String
- pPort :: GenParser Char st (Maybe Port)
- pQuery :: GenParser Char st String
- pFragment :: GenParser Char st String
- pPathAbempty :: GenParser Char st Path
- pPathAbsolute :: GenParser Char st Path
- pPathNoscheme :: GenParser Char st Path
- pPathRootless :: GenParser Char st Path
- pPathEmpty :: GenParser Char st Path
- pPath :: GenParser Char st Path
- pSegmentNz :: GenParser Char st String
- pSegmentNzNc :: GenParser Char st String
- pSegment :: GenParser Char st String
- _pSlashSegments :: GenParser Char st [PathSegment]
- pPchar :: GenParser Char st String
- pUriReference :: GenParser Char st Uri
- pRelativeRef :: GenParser Char st Uri
- pRelativePart :: GenParser Char st (Query -> Fragment -> Uri)
- pAbsoluteUri :: GenParser Char st Uri
Documentation
path :: Uri :-> FilePathSource
Access the path part of the URI. The query will be properly decoded when reading and encoded when writing.
pathAndQuery :: Uri :-> StringSource
Access the path and query parts of the URI as a single string. The string will will be properly decoded when reading and encoded when writing.
Parse string into a URI and ignore all failures by returning an empty URI when parsing fails. Can be quite useful in situations that parse errors are unlikely.
parseAbsoluteUri :: String -> Either ParseError UriSource
Parse string into a URI and only accept absolute URIs.
parseAuthority :: String -> Either ParseError AuthoritySource
Parse string into an authority.
pDigit :: CharParser st CharSource
pAlphanum :: CharParser st CharSource
pAlpha :: CharParser st CharSource
pUnreserved :: GenParser Char st CharSource
pGenDelims :: CharParser st CharSource
pSubDelims :: CharParser st CharSource
pPctEncoded :: GenParser Char st StringSource
pIPv4address :: GenParser Char st [Int]Source
pPathAbempty :: GenParser Char st PathSource
pPathAbsolute :: GenParser Char st PathSource
pPathNoscheme :: GenParser Char st PathSource
pPathRootless :: GenParser Char st PathSource
pPathEmpty :: GenParser Char st PathSource
pSegmentNz :: GenParser Char st StringSource
pUriReference :: GenParser Char st UriSource
pRelativeRef :: GenParser Char st UriSource
pAbsoluteUri :: GenParser Char st UriSource