def cookie.path_rest
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
460# identical paths match; otherwise the prefix rules (RFC 6265 §5.1.4)
461def cookie.path_rest(+req: String, +cpath: String, same: Bool) -> Bool:
462 match same:
463 case True{}:
464 True{}
465 case False{}:
466 cookie.path_slash(req, cpath, String.ends_with(cpath, "/"))