Documentation

Hale.WaiExtra.Network.Wai.Middleware.Select

Conditionally apply a middleware based on a request predicate. If the predicate returns some middleware, apply it; otherwise pass through. $$\text{select} : (\text{Request} \to \text{Option Middleware}) \to \text{Middleware}$$

Equations
Instances For

    Select with always-none is the identity middleware. $$\text{select}(\lambda\, \_.\; \text{none}) = \text{id}$$