From 5e05fe8e7877ffd6bc473b77b8ca0a12ad26bd67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 14 Mar 2024 16:23:56 +0100 Subject: Cowboy 2.12, Cowlib 2.13, Gun 2.1 --- .../2.1/manual/gun_cookies.domain_match/index.html | 196 +++++++++++++++++++++ 1 file changed, 196 insertions(+) create mode 100644 docs/en/gun/2.1/manual/gun_cookies.domain_match/index.html (limited to 'docs/en/gun/2.1/manual/gun_cookies.domain_match') diff --git a/docs/en/gun/2.1/manual/gun_cookies.domain_match/index.html b/docs/en/gun/2.1/manual/gun_cookies.domain_match/index.html new file mode 100644 index 00000000..2a3e7cba --- /dev/null +++ b/docs/en/gun/2.1/manual/gun_cookies.domain_match/index.html @@ -0,0 +1,196 @@ + + + + + + + + + + Nine Nines: gun_cookies:domain_match(3) + + + + + + + + + + + + + + + +
+
+
+
+ +

gun_cookies:domain_match(3)

+ +

Name

+

gun_cookies:domain_match - Cookie domain match

+

Description

+
+
domain_match(String, DomainString) -> boolean()
+
+String       :: binary()
+DomainString :: binary()
+
+

Cookie domain match.

+

This function can be used when implementing the set_cookie_secure_match callback of a cookie store.

+

Arguments

+
String
+

The string to match.

+
+
DomainString
+

The domain string that will be matched against.

+
+
+

Return value

+

Returns true when String domain-matches DomainString, and false otherwise.

+

Changelog

+
  • 2.0: Function introduced. +
  • +
+

Examples

+
Perform a domain match
+
+
Match = gun_cookies:domain_match(Domain, CookieDomain).
+
+

See also

+

gun_cookies(3), gun_cookies:path_match(3)

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

+ Gun + 2.1 + 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