From b5d4cb91f80c833795a2d87050c3674bb7aecdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 3 Oct 2017 13:39:41 +0200 Subject: Update Hugo, docs --- .../2.0/manual/cowboy_req.parse_cookies/index.html | 172 ++++++++++----------- 1 file changed, 86 insertions(+), 86 deletions(-) (limited to 'docs/en/cowboy/2.0/manual/cowboy_req.parse_cookies') diff --git a/docs/en/cowboy/2.0/manual/cowboy_req.parse_cookies/index.html b/docs/en/cowboy/2.0/manual/cowboy_req.parse_cookies/index.html index d04e504d..f5949f9f 100644 --- a/docs/en/cowboy/2.0/manual/cowboy_req.parse_cookies/index.html +++ b/docs/en/cowboy/2.0/manual/cowboy_req.parse_cookies/index.html @@ -7,7 +7,7 @@ - + Nine Nines: cowboy_req:parse_cookies(3) @@ -67,91 +67,91 @@

cowboy_req:parse_cookies(3)

-
-

Name

-
-

cowboy_req:parse_cookies - Parse cookie headers

-
-
-
-

Description

-
-
-
-
parse_cookies(Req) -> [{Name, Value}]
-
-Name  :: binary() %% case sensitive
-Value :: binary() %% case sensitive
-

Parse cookie headers.

- -

When the cookie header is missing, [] is returned.

-

While an empty cookie header is not valid, some clients do -send it. Cowboy will in this case also return [].

-
-
-
-

Arguments

-
-
-
-Req -
-
-

-The Req object. -

-
-
-
-
-
-

Return value

-
-

The cookies are returned as a list of key/values. Keys and -values are case sensitive binary strings.

-
-
-
-

Changelog

-
-
    -
  • -

    -2.0: Only the parsed header value is returned, it is no longer wrapped in a tuple. -

    -
  • -
  • -

    -2.0: Function introduced. Replaces cookie/2,3 and cookies/1. -

    -
  • -
-
-
-
-

Examples

-
-
-
Look for a specific cookie
-
-
Cookies = cowboy_req:parse_cookies(Req),
-{_, Token} = lists:keyfind(token, 1, Cookies).
-
-
-
-

See also

- -
+
+

Name

+
+

cowboy_req:parse_cookies - Parse cookie headers

+
+
+
+

Description

+
+
+
+
parse_cookies(Req) -> [{Name, Value}]
+
+Name  :: binary() %% case sensitive
+Value :: binary() %% case sensitive
+

Parse cookie headers.

+ +

When the cookie header is missing, [] is returned.

+

While an empty cookie header is not valid, some clients do +send it. Cowboy will in this case also return [].

+
+
+
+

Arguments

+
+
+
+Req +
+
+

+The Req object. +

+
+
+
+
+
+

Return value

+
+

The cookies are returned as a list of key/values. Keys and +values are case sensitive binary strings.

+
+
+
+

Changelog

+
+
    +
  • +

    +2.0: Only the parsed header value is returned, it is no longer wrapped in a tuple. +

    +
  • +
  • +

    +2.0: Function introduced. Replaces cookie/2,3 and cookies/1. +

    +
  • +
+
+
+
+

Examples

+
+
+
Look for a specific cookie
+
+
Cookies = cowboy_req:parse_cookies(Req),
+{_, Token} = lists:keyfind(token, 1, Cookies).
+
+
+
+

See also

+ +
-- cgit v1.2.3