Cookie.cookie.path_slash: def of emerging-ezhttp@0.22.0.0 Import: import emerging-ezhttp@0.22.0.0/src/cookie.bend as Cookie Lines 452-458 of emerging-ezhttp@0.22.0.0/src/cookie.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.22.0.0/src/cookie.bend&start_line=452&end_line=458 import Base # the next request character is `/`, or the cookie-path already ended in `/` def cookie.path_slash(+req: String, +cpath: String, slash: Bool) -> Bool: match slash: case True{}: True{} case False{}: String.starts_with(String.drop(req, String.length(cpath)), "/") Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.drop https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.starts_with