Cors.cors.preflight.headers: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors Lines 162-171 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=162&end_line=171 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http # 400 when a requested header is not allowed; otherwise 200 def cors.preflight.headers(acao: String, methods: List<&2, String>, headers: List<&2, String>, credentials: Bool, max_age: String, _req: String, ok: Bool) -> Http.Reply: match ok: case False{}: Http.Reply{400, [], ""} case True{}: Http.Reply{200, cors.preflight_hs(acao, methods, headers, credentials, max_age), ""} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&name=cors.preflight_hs https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Reply