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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Network.Wai.Middleware.Vhost

# Documentation

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

redirectWWW :: Text -> Application -> Application #

redirectTo :: ByteString -> Response #

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