HaskellNet-0.2.2: network related libraries such as POP3, SMTP, IMAPSource codeContentsIndex
Text.URI
Portabilityportable
Stabilitystable
Maintainermukai@jmuk.org
Description
URI parser and utilities
Synopsis
data URI = URI {
scheme :: String
host :: String
user :: String
password :: String
port :: Maybe PortNumber
path :: String
query :: String
fragment :: String
}
port' :: URI -> PortNumber
uri :: String -> URI
uri' :: ByteString -> URI
escape :: [Word8] -> String
unescape :: String -> String
parseURI :: String -> Maybe URI
parseURI' :: ByteString -> Maybe URI
portToName :: PortNumber -> Maybe String
nameToPort :: String -> Maybe PortNumber
Documentation
data URI Source
Constructors
URI
scheme :: String
host :: String
user :: String
password :: String
port :: Maybe PortNumber
path :: String
query :: String
fragment :: String
show/hide Instances
port' :: URI -> PortNumberSource
Obtain the port number for the URI. If no port number exists, port' would like to estimate the port number from the scheme name. If both failed, it raises an error.
uri :: String -> URISource
uri' :: ByteString -> URISource
Parse URI string simiar to parseURI. The difference is that it raises an error for the case of parse failed, not returns Nothing.
escape :: [Word8] -> StringSource
unescape :: String -> StringSource
parseURI :: String -> Maybe URISource
Parse URI string and returns the result. If the parse is failed, it simply returns Nothing.
parseURI' :: ByteString -> Maybe URISource
portToName :: PortNumber -> Maybe StringSource
nameToPort :: String -> Maybe PortNumberSource
Produced by Haddock version 2.7.2