def cookie.path_prefix

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

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

Uses (4)

Used by (1)