Cors.cors.is_preflight: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors Lines 265-272 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=265&end_line=272 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http # whether this request is a CORS preflight def cors.is_preflight(req: Http.Request) -> Bool: match req: case Http.Bad{why}: False{} case Http.Request{method, target, headers, body}: cors.is_preflight.method(method, Http.headers.find(headers, "access-control-request-method")) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/cors.bend&name=cors.is_preflight.method https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Request https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=headers.find