path_match(ReqPath, CookiePath) -> boolean() ReqPath :: binary() CookiePath :: binary()
gun_cookies:path_match - Cookie path match
path_match(ReqPath, CookiePath) -> boolean() ReqPath :: binary() CookiePath :: binary()
Cookie path match.
This function can be used when implementing the
set_cookie_secure_match callback of a cookie store.
The request path to match.
The cookie path that will be matched against.
Returns true when ReqPath path-matches CookiePath,
and false otherwise.
2.0: Function introduced.
Match = gun_cookies:path_match(ReqPath, CookiePath).