def cookie.path_slash

emerging-ezhttp@0.21.0.0 · src/cookie.bend:452

import emerging-ezhttp@0.21.0.0/src/cookie.bend as Cookie
import 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)), "/")

Uses (5)

Used by (1)