- exactdir :: Monad m => String -> ServerPartT m a -> ServerPartT m a
- spsIf :: Monad m => (Request -> Bool) -> ServerPartT m a -> ServerPartT m a
- getData' :: (ServerMonad m, FromData a, MonadPlus m) => m a
- vhost :: (String, Int) -> ServerPartT IO Response -> ServerPartT IO Response
Documentation
exactdir :: Monad m => String -> ServerPartT m a -> ServerPartT m aSource
spsIf :: Monad m => (Request -> Bool) -> ServerPartT m a -> ServerPartT m aSource
getData' :: (ServerMonad m, FromData a, MonadPlus m) => m aSource
vhost :: (String, Int) -> ServerPartT IO Response -> ServerPartT IO ResponseSource
multiple vhosts to a server, eg | vhosts [(mysite.com,80),(www.mysite.com,80)] mySiteController
vhost doms h = msum . map (d -> site d h) doms similar to apache vhost. given (domain,port) and a main request handler, handle requests if it's the specified domain and port vhost (mysite.com,80) mySiteController