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

Safe Haskell | None
Language | Haskell98

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