def cookie.path.of

bend-kit-http@0.38.4.0 · http.bend:2285

import bend-kit-http@0.38.4.0/http.bend as Http
import 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))

Uses (5)

Used by (1)