Documentation

Hale.WaiExtra.Network.Wai.Middleware.ForceSSL

Redirect non-secure requests to HTTPS. $$\text{forceSSL} : \text{Middleware}$$

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem Network.Wai.Middleware.forceSSL_secure (app : Application) (req : Request) (respond : ResponseControl.Concurrent.Green.Green ResponseReceived) (h : req.isSecure = true) :
    forceSSL app req respond = app req respond

    Secure requests pass through the forceSSL middleware unchanged. $$\forall\, \text{req},\; \text{req.isSecure} = \text{true} \implies \text{forceSSL}(\text{app}, \text{req}) = \text{app}(\text{req})$$