hack-frontend-happstack-2009.6.24: hack-frontend-happstackSource codeContentsIndex
Hack.Frontend.Happstack
Synopsis
serverPartToApp :: ToMessage b => ServerPartT IO b -> Application
convert :: (Request -> IO Response) -> Application
toHackResponse :: Response -> Response
convertHeader :: HeaderPair -> (String, String)
toHappstackRequest :: Env -> Request
cookieWithName :: Cookie -> (String, Cookie)
processRequest :: (ToMessage b, Monad m, Functor m) => ServerPartT m b -> Request -> m Response
split :: Char -> String -> [String]
Documentation
serverPartToApp :: ToMessage b => ServerPartT IO b -> ApplicationSource
convert :: (Request -> IO Response) -> ApplicationSource
toHackResponse :: Response -> ResponseSource
convertHeader :: HeaderPair -> (String, String)Source
Sets all the headers coming from Happstack
toHappstackRequest :: Env -> RequestSource
Converts one request into another
cookieWithName :: Cookie -> (String, Cookie)Source
processRequest :: (ToMessage b, Monad m, Functor m) => ServerPartT m b -> Request -> m ResponseSource
Transforms a ServerPartT into a function. This is a copy of simpleHTTP'
split :: Char -> String -> [String]Source
Splits a list by character, the resulting lists don't have the character in them.
Produced by Haddock version 2.6.0