Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- redirectHandler :: (RedirectURL -> [(Text, Maybe Text)] -> Text) -> RedirectConfig -> ClckPlugins -> [Text] -> ClckT ClckURL (ServerPartT IO) Response
- redirectInit :: ClckPlugins -> IO (Maybe Text)
- addRedirectAdminMenu :: ClckT url IO ()
- redirectPlugin :: Plugin RedirectURL Theme (ClckT ClckURL (ServerPartT IO) Response) (ClckT ClckURL IO ()) ClckwrksConfig ClckPluginsSt
- plugin :: ClckPlugins -> Text -> IO (Maybe Text)
- initRedirectPlugin :: Plugins Theme (ClckT ClckURL (ServerPartT IO) Response) (ClckT ClckURL IO ()) ClckwrksConfig ClckPluginsSt -> Text -> IO (Maybe Text)
- paramsToQueryString :: [(Text, Text)] -> Text
Documentation
redirectHandler :: (RedirectURL -> [(Text, Maybe Text)] -> Text) -> RedirectConfig -> ClckPlugins -> [Text] -> ClckT ClckURL (ServerPartT IO) Response Source #
redirectInit :: ClckPlugins -> IO (Maybe Text) Source #
addRedirectAdminMenu :: ClckT url IO () Source #
redirectPlugin :: Plugin RedirectURL Theme (ClckT ClckURL (ServerPartT IO) Response) (ClckT ClckURL IO ()) ClckwrksConfig ClckPluginsSt Source #
:: Plugins Theme (ClckT ClckURL (ServerPartT IO) Response) (ClckT ClckURL IO ()) ClckwrksConfig ClckPluginsSt |
|
-> Text | base URI to prepend to generated URLs |
-> IO (Maybe Text) | possible error message |
initialize the redirect plugin
we can not use the standard initPlugin
function for the redirect plugin because we want to intercept URLs higher up the chain.