aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cow_cookie.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-10-10 14:40:56 +0200
committerLoïc Hoguin <[email protected]>2019-10-10 14:40:56 +0200
commit02a889d7a640d0ac990b3b7c6bcc05c4f26a89fa (patch)
treed6cf7df1864b9ab10187a2a2884963bc0db2f596 /doc/src/manual/cow_cookie.asciidoc
parentfaa57b16eba29a2609c23bbe01d42f6d37a1d511 (diff)
downloadcowlib-02a889d7a640d0ac990b3b7c6bcc05c4f26a89fa.tar.gz
cowlib-02a889d7a640d0ac990b3b7c6bcc05c4f26a89fa.tar.bz2
cowlib-02a889d7a640d0ac990b3b7c6bcc05c4f26a89fa.zip
Fix cookie_opts() type in code and documentation
It's supposed to be a map, not a proplist.
Diffstat (limited to 'doc/src/manual/cow_cookie.asciidoc')
-rw-r--r--doc/src/manual/cow_cookie.asciidoc16
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/src/manual/cow_cookie.asciidoc b/doc/src/manual/cow_cookie.asciidoc
index 0717299..2c33104 100644
--- a/doc/src/manual/cow_cookie.asciidoc
+++ b/doc/src/manual/cow_cookie.asciidoc
@@ -20,14 +20,14 @@ and manipulating cookie headers.
[source,erlang]
----
-cookie_opts() :: [Option]
-
-Option :: {domain, binary()}
- | {http_only, boolean()}
- | {max_age, non_neg_integer()}
- | {path, binary()}
- | {same_site, lax | strict}
- | {secure, boolean()}
+cookie_opts() :: #{
+ 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