From 490056310be890ced37e6fb2899e573bb388db89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 4 Oct 2019 15:25:24 +0200 Subject: Add cow_cookie manual --- docs/en/cowlib/2.7/manual/cow_cookie/index.html | 195 ++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 docs/en/cowlib/2.7/manual/cow_cookie/index.html (limited to 'docs/en/cowlib/2.7/manual/cow_cookie/index.html') diff --git a/docs/en/cowlib/2.7/manual/cow_cookie/index.html b/docs/en/cowlib/2.7/manual/cow_cookie/index.html new file mode 100644 index 00000000..066c5a3c --- /dev/null +++ b/docs/en/cowlib/2.7/manual/cow_cookie/index.html @@ -0,0 +1,195 @@ + + + + + + + + + + Nine Nines: cow_cookie(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

cow_cookie(3)

+ +

Name

+

cow_cookie - Cookies

+

Description

+

The module cow_cookie provides functions for parsing and manipulating cookie headers.

+

Exports

+ +

Types

+ +
+
cookie_opts() :: [Option]
+
+Option :: {domain, binary()}
+        | {http_only, boolean()}
+        | {max_age, non_neg_integer()}
+        | {path, binary()}
+        | {same_site, lax | strict}
+        | {secure, boolean()}
+
+

Options for the set-cookie header. They are added to the header as attributes. More information about the options can be found in RFC 6265.

+

The following options are defined:

+
domain
+

Hosts to which the cookie will be sent. By default it will only be sent to the origin server.

+
+
http_only
+

Whether the cookie should be restricted to HTTP requests, or it should also be exposed to other APIs, for example Javascript. By default there are no restrictions.

+
+
max_age
+

Maximum lifetime of the cookie, in seconds. By default the cookie is kept for the duration of the session.

+
+
path
+

Path to which the cookie will be sent. By default it will be sent to the current "directory" of the effective request URI.

+
+
same_site
+

Whether the cookie should be sent along with cross-site requests. This header is currently non-standard but is in the process of being standardized. Please refer to the RFC 6265 (bis) draft for details.

+
+
secure
+

Whether the cookie should be sent only on secure channels (for example TLS). Note that this does not guarantee the integrity of the cookie, only its confidentiality during transfer. By default there are no restrictions.

+
+
+

See also

+

cowlib(7), RFC 6265

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

+ Cowlib + 2.7 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+
    + + + +
  • 2.7
  • + +
+ +

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 BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.

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