Browse Source

Update cookie manual pages

Loïc Hoguin 2 years ago
parent
commit
130e21d2c2

+ 4 - 2
doc/src/manual/cow_cookie.asciidoc

@@ -29,7 +29,7 @@ cookie_attrs() :: #{
     path => binary(),
     secure => true,
     http_only => true,
-    same_site => strict | lax | none
+    same_site => default | none | strict | lax
 }
 ----
 
@@ -48,7 +48,7 @@ cookie_opts() :: #{
     http_only => boolean(),
     max_age   => non_neg_integer(),
     path      => binary(),
-    same_site => strict | lax | none,
+    same_site => default | none | strict | lax,
     secure    => boolean()
 }
 ----
@@ -101,6 +101,8 @@ transfer. By default there are no restrictions.
 
 == Changelog
 
+* *2.12*: The `same_site` attribute and option may now be
+          set to `default`.
 * *2.10*: The `same_site` attribute and option may now be
           set to `none`.
 * *2.9*: The `cookie_attrs` type was added.

+ 1 - 0
doc/src/manual/cow_cookie.setcookie.asciidoc

@@ -36,6 +36,7 @@ An iolist with the generated set-cookie header value.
 
 == Changelog
 
+* *2.12*: The `Version` attribute is no longer generated.
 * *1.0*: Function introduced.
 
 == Examples