From 5ff790b8d2b04152d0bf851cbf759f3c33cf53e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 25 Mar 2020 14:09:51 +0100 Subject: Gun 2.0.0-pre.2 and Cowlib 2.9.0 --- .../2.0/manual/gun_cookies.path_match/index.html | 195 +++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 docs/en/gun/2.0/manual/gun_cookies.path_match/index.html (limited to 'docs/en/gun/2.0/manual/gun_cookies.path_match/index.html') diff --git a/docs/en/gun/2.0/manual/gun_cookies.path_match/index.html b/docs/en/gun/2.0/manual/gun_cookies.path_match/index.html new file mode 100644 index 00000000..930286a7 --- /dev/null +++ b/docs/en/gun/2.0/manual/gun_cookies.path_match/index.html @@ -0,0 +1,195 @@ + + + + + + + + + + Nine Nines: gun_cookies:path_match(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

gun_cookies:path_match(3)

+ +

Name

+

gun_cookies:path_match - Cookie path match

+

Description

+
+
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.

+

Arguments

+
ReqPath
+

The request path to match.

+
+
CookiePath
+

The cookie path that will be matched against.

+
+
+

Return value

+

Returns true when ReqPath path-matches CookiePath, and false otherwise.

+

Changelog

+
  • 2.0: Function introduced. +
  • +
+

Examples

+
Perform a path match
+
+
Match = gun_cookies:path_match(ReqPath, CookiePath).
+
+

See also

+

gun_cookies(3), gun_cookies:domain_match(3)

+ + + + + + +
+ +
+ + +

+ Gun + 2.0 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+ + +

Like my work? Donate!

+

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.

+ + + +
+
+
+
+ + + + + + + + + -- cgit v1.2.3