From 7d61b485e47e247d7ecac500c83a902ab934f569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 16 Nov 2020 16:12:55 +0100 Subject: Update documentation --- .../2.10/manual/cow_cookie.setcookie/index.html | 194 +++++++++++++++++++++ 1 file changed, 194 insertions(+) create mode 100644 docs/en/cowlib/2.10/manual/cow_cookie.setcookie/index.html (limited to 'docs/en/cowlib/2.10/manual/cow_cookie.setcookie/index.html') diff --git a/docs/en/cowlib/2.10/manual/cow_cookie.setcookie/index.html b/docs/en/cowlib/2.10/manual/cow_cookie.setcookie/index.html new file mode 100644 index 00000000..f7bae2f8 --- /dev/null +++ b/docs/en/cowlib/2.10/manual/cow_cookie.setcookie/index.html @@ -0,0 +1,194 @@ + + + + + + + + + + Nine Nines: cow_cookie:setcookie(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

cow_cookie:setcookie(3)

+ +

Name

+

cow_cookie:setcookie - Generate a set-cookie header

+

Description

+
+
setcookie(Name  :: iodata(),
+          Value :: iodata(),
+          Opts  :: cow_cookie:cookie_opts())
+    -> iolist()
+
+

Generate a set-cookie header.

+

Arguments

+
Name
+

Cookie name.

+
+
Value
+

Cookie value.

+
+
Opts
+

Options added to the set-cookie header as attributes.

+
+
+

Return value

+

An iolist with the generated set-cookie header value.

+

Changelog

+
  • 1.0: Function introduced. +
  • +
+

Examples

+
Generate a set-cookie header
+
+
SetCookie = cow_cookie:setcookie(<<"sessionid">>, ID, #{
+    http_only => true,
+    secure    => true
+}).
+
+

See also

+

cow_cookie(3), cow_cookie:parse_cookie(3), cow_cookie:parse_set_cookie(3), cow_cookie:cookie(3)

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

+ Cowlib + 2.10 + Function Reference + +

+ + + +

Navigation

+ +

Version select

+ + +

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

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