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.
Match = gun_cookies:path_match(ReqPath, CookiePath).
Donate to Loïc Hoguin because his work on Cowboy, Ranch, Gun and Erlang.mk is fantastic:
Recurring payment options are also available via GitHub Sponsors. These funds are used to cover the recurring expenses like food, dedicated servers or domain names.