def cors.expose_of
import emerging-ezhttp@0.21.0.0/src/cors.bend as Corsimport Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
204# Access-Control-Expose-Headers when the list is not empty
205def cors.expose_of(hs: List<&2, Http.Header>, expose: List<&2, String>,
206 empty: Bool) -> List<&2, Http.Header>:
207 match empty:
208 case True{}:
209 hs
210 case False{}:
211 Http.H{"Access-Control-Expose-Headers", cors.join(expose)} <> hs