def cors.on

emerging-ezhttp@0.21.0.0 · src/cors.bend:301

import emerging-ezhttp@0.21.0.0/src/cors.bend as Cors
import Base
import emerging-ezhttp@0.21.0.0/src/http.bend as Http

301# answer a request: preflight or simple CORS on top of `reply`
302def cors.on(cfg: Cfg, +req: Http.Request, reply: Http.Reply) -> Http.Reply:
303  cors.route(cfg, req, reply, cors.is_preflight(req))

Uses (5)

Used by (2)