def cors.preflight.denied
emerging-ezhttp@0.21.0.0 · src/cors.bend:184
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
184
185def cors.preflight.denied(acao: String, +methods: List<&2, String>,
186 headers: List<&2, String>, credentials: Bool, max_age: String,
187 req_headers: String, +method: String, denied: Bool) -> Http.Reply:
188 match denied:
189 case True{}:
190 Http.Reply{400, [], ""}
191 case False{}:
192 cors.preflight.method(acao, methods, headers, credentials, max_age,
193 req_headers, method, cors.hit(method, methods))