From 5ff790b8d2b04152d0bf851cbf759f3c33cf53e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 25 Mar 2020 14:09:51 +0100 Subject: Gun 2.0.0-pre.2 and Cowlib 2.9.0 --- .../cowlib/2.9/manual/cow_cookie.cookie/index.html | 182 +++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 docs/en/cowlib/2.9/manual/cow_cookie.cookie/index.html (limited to 'docs/en/cowlib/2.9/manual/cow_cookie.cookie/index.html') diff --git a/docs/en/cowlib/2.9/manual/cow_cookie.cookie/index.html b/docs/en/cowlib/2.9/manual/cow_cookie.cookie/index.html new file mode 100644 index 00000000..c18b41a4 --- /dev/null +++ b/docs/en/cowlib/2.9/manual/cow_cookie.cookie/index.html @@ -0,0 +1,182 @@ + + + + + + + + + + Nine Nines: cow_cookie:cookie(3) + + + + + + + + + + + + + + + + +
+
+
+
+ +

cow_cookie:cookie(3)

+ +

Name

+

cow_cookie:cookie - Generate a cookie header

+

Description

+
+
cookie(Cookies) -> iolist()
+
+Cookies :: [{Name :: iodata(), Value :: iodata()}]
+
+

Generate a cookie header.

+

Arguments

+
Cookies
+

A list of pairs of cookie name and value.

+
+
+

Return value

+

An iolist with the generated cookie header value.

+

Changelog

+
  • 2.9: Function introduced. +
  • +
+

Examples

+
Generate a cookie header
+
+
Cookie = cow_cookie:cookie([{<<"sessionid">>, ID}]).
+
+

See also

+

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

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

+ Cowlib + 2.9 + 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