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

Network.Wai.Middleware.ForceDomain

Description

Since: wai-extra-3.0.14

Synopsis

# Documentation

Force a domain by redirecting. The checkDomain function takes the current domain and checks whether it is correct. It should return Nothing if the domain is correct, or Just "domain.com" if it is incorrect.

Since: wai-extra-3.0.14