aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual
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
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')
-rw-r--r--doc/src/manual/cow_cookie.asciidoc16
-rw-r--r--doc/src/manual/cow_cookie.setcookie.asciidoc2
2 files changed, 9 insertions, 9 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
diff --git a/doc/src/manual/cow_cookie.setcookie.asciidoc b/doc/src/manual/cow_cookie.setcookie.asciidoc
index ab2d466..96ddcac 100644
--- a/doc/src/manual/cow_cookie.setcookie.asciidoc
+++ b/doc/src/manual/cow_cookie.setcookie.asciidoc
@@ -45,7 +45,7 @@ An iolist with the generated set-cookie header value.
----
SetCookie = cow_cookie:setcookie(<<"sessionid">>, ID, #{
http_only => true,
- secure => true
+ secure => true
}).
----