Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Make URI an instance of Read and Ord, and add functions to manipulate the uriQuery.
- module Network.URI
- relURI :: FilePath -> [(String, String)] -> URI
- setURIPort :: String -> URI -> URI
- parseURIQuery :: URI -> [(String, String)]
- modifyURIQuery :: ([(String, String)] -> [(String, String)]) -> URI -> URI
- setURIQuery :: [(String, String)] -> URI -> URI
- setURIQueryAttr :: String -> String -> URI -> URI
- deleteURIQueryAttr :: String -> URI -> URI
Documentation
module Network.URI
setURIPort :: String -> URI -> URI Source
Set the port number in the URI authority, creating it if necessary.
parseURIQuery :: URI -> [(String, String)] Source
Return the pairs in a URI's query
modifyURIQuery :: ([(String, String)] -> [(String, String)]) -> URI -> URI Source
Modify a URI's query by applying a function to the pairs
deleteURIQueryAttr :: String -> URI -> URI Source