From 8459bebceb9533948193774371cbd9fd571b78ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 16 Oct 2019 09:48:31 +0200 Subject: Cowboy 2.7.0 --- .../2.2/manual/cowboy_req.parse_header/index.html | 36 ++++++++++++---------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'docs/en/cowboy/2.2/manual/cowboy_req.parse_header/index.html') diff --git a/docs/en/cowboy/2.2/manual/cowboy_req.parse_header/index.html b/docs/en/cowboy/2.2/manual/cowboy_req.parse_header/index.html index 76ae07f5..4d9b8791 100644 --- a/docs/en/cowboy/2.2/manual/cowboy_req.parse_header/index.html +++ b/docs/en/cowboy/2.2/manual/cowboy_req.parse_header/index.html @@ -65,7 +65,7 @@

Name

cowboy_req:parse_header - Parse the given HTTP header

Description

-
@@ -96,7 +96,7 @@ http://www.gnu.org/software/src-highlite -->

Headers

The following snippets detail the types returned by the different headers. Unless mentioned otherwise, the default value when the header is missing will be undefined:

accept
-
@@ -112,7 +112,7 @@ http://www.gnu.org/software/src-highlite --> Value :: binary() %% case sensitive
accept-charset, accept-encoding and accept-language
-
@@ -125,7 +125,7 @@ http://www.gnu.org/software/src-highlite --> Quality :: 0..1000
authorization
-
@@ -136,7 +136,7 @@ http://www.gnu.org/software/src-highlite -->
content-length
-
@@ -144,7 +144,7 @@ http://www.gnu.org/software/src-highlite -->

When the content-length header is missing, 0 is returned.

content-type
-
@@ -159,7 +159,7 @@ http://www.gnu.org/software/src-highlite -->

Note that the value for the charset parameter is case insensitive and returned as a lowercase binary string.

cookie
-
@@ -171,14 +171,14 @@ http://www.gnu.org/software/src-highlite -->

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 [].

expect
-
parse_header(<<"expect">>, Req) -> continue
if-match and if-none-match
-
@@ -190,14 +190,14 @@ http://www.gnu.org/software/src-highlite --> OpaqueTag :: binary() %% case sensitive
if-modified-since and if-unmodified-since
-
parse_header(Name, Req) -> calendar:datetime()
range
-
@@ -208,7 +208,7 @@ http://www.gnu.org/software/src-highlite --> Final :: neg_integer()
sec-websocket-extensions
-
@@ -221,7 +221,7 @@ http://www.gnu.org/software/src-highlite --> Value :: binary() %% case sensitive
sec-websocket-protocol and upgrade
-
@@ -232,7 +232,7 @@ http://www.gnu.org/software/src-highlite --> Token :: binary() %% case insensitive
x-forwarded-for
-
@@ -241,7 +241,7 @@ http://www.gnu.org/software/src-highlite --> Token :: binary() %% case sensitive
Unknown headers
-
@@ -255,7 +255,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Parse the accept header with a custom default value
-
@@ -264,7 +264,7 @@ http://www.gnu.org/software/src-highlite --> [{{ <<"*">>, <<"*">>, []}, 1000, []}]).
Parse the content-length header
-
@@ -308,6 +308,8 @@ http://www.gnu.org/software/src-highlite --> +
  • 2.7
  • +
  • 2.6
  • 2.5
  • -- cgit v1.2.3