diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/manual/cow_cookie.asciidoc | 16 | ||||
-rw-r--r-- | doc/src/manual/cow_cookie.setcookie.asciidoc | 2 |
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 }). ---- |