def cookie.path_prefix
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
468# path-match once the cookie-path is known to be a prefix
469def cookie.path_prefix(+req: String, +cpath: String, hit: Bool) -> Bool:
470 match hit:
471 case False{}:
472 False{}
473 case True{}:
474 cookie.path_rest(req, cpath, String.eq(req, cpath))