From 136d443b5c38bee96f5d995dfea3629ef07564c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 18 Jul 2019 09:59:28 +0200 Subject: Announce Ranch 2.0.0-rc.1 Adds Ranch 2.0 documentation and removes documentation for very old Cowboy and Ranch, along with Erlang.mk documentation which is available on its own website. --- .../2.1/manual/cowboy_req.parse_cookies/index.html | 203 --------------------- 1 file changed, 203 deletions(-) delete mode 100644 docs/en/cowboy/2.1/manual/cowboy_req.parse_cookies/index.html (limited to 'docs/en/cowboy/2.1/manual/cowboy_req.parse_cookies') diff --git a/docs/en/cowboy/2.1/manual/cowboy_req.parse_cookies/index.html b/docs/en/cowboy/2.1/manual/cowboy_req.parse_cookies/index.html deleted file mode 100644 index 83dd2777..00000000 --- a/docs/en/cowboy/2.1/manual/cowboy_req.parse_cookies/index.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - - - - - Nine Nines: cowboy_req:parse_cookies(3) - - - - - - - - - - - - - - - - -
-
-
-
- -

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.

-

Alias for cowboy_req:parse_header(<<"cookie">>, Req).

-

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

-

cowboy_req(3), cowboy_req:parse_header(3), cowboy_req:match_cookies(3)

- - - - - - -
- -
- - -

- Cowboy - 2.1 - 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 BountySource. These funds are used to cover the recurring expenses like dedicated servers or domain names.

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