Cors.cors.simple: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors Lines 241-247 of emerging-ezhttp@0.21.0.0/src/cors.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&start_line=241&end_line=247 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http # a non-preflight response. A missing or refused origin is unchanged. def cors.simple(cfg: Cfg, origin: String, reply: Http.Reply) -> Http.Reply: match cfg: case Cfg{+origins, methods, headers, +credentials, max_age, expose}: +acao = cors.acao(origins, credentials, origin) cors.simple.add(reply, acao, credentials, expose, Bool.not(String.eq(acao, ""))) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.not https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&name=Cfg https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&name=cors.acao https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&name=cors.simple.add https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Reply