def cors.is_preflight.method

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

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

261# OPTIONS with Access-Control-Request-Method is a preflight
262def cors.is_preflight.method(method: String, asked: String) -> Bool:
263  Bool.and(String.eq(method, "OPTIONS"), Bool.not(String.eq(asked, "")))

Uses (5)

Used by (1)