happstack-server-0.3.3: Web related tools and services.Source codeContentsIndex
Happstack.Server.SURI
Synopsis
path :: SURI -> String
query :: SURI -> String
scheme :: SURI -> String
u_scheme :: (String -> String) -> SURI -> SURI
u_path :: (String -> String) -> SURI -> SURI
a_scheme :: String -> SURI -> SURI
a_path :: String -> SURI -> SURI
unEscape :: String -> String
escape :: String -> String
isAbs :: SURI -> Bool
newtype SURI = SURI {
suri :: URI
}
render :: ToSURI a => a -> String
parse :: String -> Maybe SURI
class ToSURI x where
toSURI :: x -> SURI
class FromPath x where
fromPath :: String -> x
Documentation
path :: SURI -> StringSource
Retrieves the path component from the URI
query :: SURI -> StringSource
Retrieves the query component from the URI
scheme :: SURI -> StringSource
Retrieves the scheme component from the URI
u_scheme :: (String -> String) -> SURI -> SURISource
Modifies the scheme component of the URI using the provided function
u_path :: (String -> String) -> SURI -> SURISource
Modifies the path component of the URI using the provided function
a_scheme :: String -> SURI -> SURISource
Sets the scheme component of the URI
a_path :: String -> SURI -> SURISource
Sets the path component of the URI
unEscape :: String -> StringSource
escape :: String -> StringSource
isAbs :: SURI -> BoolSource
Returns true if the URI is absolute
newtype SURI Source
Constructors
SURI
suri :: URI
show/hide Instances
render :: ToSURI a => a -> StringSource
Render should be used for prettyprinting URIs.
parse :: String -> Maybe SURISource
Parses a URI from a String. Returns Nothing on failure.
class ToSURI x whereSource
Convenience class for converting data types to URIs
Methods
toSURI :: x -> SURISource
show/hide Instances
class FromPath x whereSource
Methods
fromPath :: String -> xSource
Produced by Haddock version 2.4.2