def cookie.path_slash
import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookieimport Base
452# the next request character is `/`, or the cookie-path already ended in `/`
453def cookie.path_slash(+req: String, +cpath: String, slash: Bool) -> Bool:
454 match slash:
455 case True{}:
456 True{}
457 case False{}:
458 String.starts_with(String.drop(req, String.length(cpath)), "/")