def cookie.path.of
import bend-kit-http@0.38.4.0/http.bend as Httpimport Base
2285def cookie.path.of(p: Maybe<&2, String>, +req: String) -> String:
2286 match p:
2287 case None{}:
2288 cookie.default_path(req)
2289 case Some{+v}:
2290 Bool.pick(String, String.starts_with(v, "/"), v, cookie.default_path(req))