Hack.Frontend.Happstack
- 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
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'