Cors.cors.preflight.method: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors Lines 173-182 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=173&end_line=182 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http # 400 when the method is not allowed def cors.preflight.method(acao: String, methods: List<&2, String>, +headers: List<&2, String>, credentials: Bool, max_age: String, +req_headers: String, _method: String, ok: Bool) -> Http.Reply: match ok: case False{}: Http.Reply{400, [], ""} case True{}: cors.preflight.headers(acao, methods, headers, credentials, max_age, req_headers, cors.headers_ok(req_headers, headers)) Uses (6): 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.headers_ok https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&name=cors.preflight.headers https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Reply