Cors.cors.simple_req: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors Lines 284-290 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=284&end_line=290 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http # simple CORS from the request Origin def cors.simple_req(cfg: Cfg, req: Http.Request, reply: Http.Reply) -> Http.Reply: match req: case Http.Bad{why}: reply case Http.Request{method, target, headers, body}: cors.simple(cfg, Http.headers.find(headers, "origin"), reply) Uses (5): 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.simple https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Reply 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