wai-extra-3.0.26.1: Provides some basic WAI handlers and middleware.

Safe Haskell | None
Language | Haskell2010

Network.Wai.Middleware.Vhost

# Documentation

vhost :: [(Request -> Bool, Application)] -> Application -> Application Source #

redirectWWW :: Text -> Application -> Application Source #

redirectTo :: ByteString -> Response Source #

redirectToLogged :: (Text -> IO ()) -> ByteString -> IO Response Source #