aboutsummaryrefslogtreecommitdiffstats
path: root/manual/cowboy_req.md
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-31 18:31:28 +0200
committerLoïc Hoguin <[email protected]>2013-05-31 18:38:43 +0200
commit4fde6cba94f4ae65b6434aa722c08c60066f67d7 (patch)
treec5b555f5e1c7a494093486f462c5632a163f2cda /manual/cowboy_req.md
parent8fac4eedcf7d658f2933cbb77b4d8fe62429e3d6 (diff)
downloadcowboy-4fde6cba94f4ae65b6434aa722c08c60066f67d7.tar.gz
cowboy-4fde6cba94f4ae65b6434aa722c08c60066f67d7.tar.bz2
cowboy-4fde6cba94f4ae65b6434aa722c08c60066f67d7.zip
In content-types, the charset parameter is converted to lowercase
We know this specific parameter is case insensitive so we automatically lowercase it to make things simpler to the developer.
Diffstat (limited to 'manual/cowboy_req.md')
-rw-r--r--manual/cowboy_req.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/manual/cowboy_req.md b/manual/cowboy_req.md
index f10120a..8a765dc 100644
--- a/manual/cowboy_req.md
+++ b/manual/cowboy_req.md
@@ -176,7 +176,7 @@ Request related exports
> | accept-language | `[{LanguageTag, Quality}]` |
> | authorization | `{AuthType, Credentials}` |
> | content-length | `non_neg_integer()` |
-> | content-type | `{Type, SubType, Params}` |
+> | content-type | `{Type, SubType, ContentTypeParams}` |
> | cookie | `[{binary(), binary()}]` |
> | expect | `[Expect | {Expect, ExpectValue, Params}]` |
> | if-match | `'*' | [{weak | strong, OpaqueTag}]` |
@@ -192,7 +192,7 @@ Request related exports
> Types for the above table:
> * Type = SubType = Charset = Encoding = LanguageTag = binary()
> * AuthType = Expect = OpaqueTag = Unit = binary()
-> * Params = [{binary(), binary()}]
+> * Params = ContentTypeParams = [{binary(), binary()}]
> * Quality = 0..1000
> * AcceptExt = [{binary(), binary()} | binary()]
> * Credentials - see below
@@ -201,8 +201,9 @@ Request related exports
> The cookie names and values, the values of the sec-websocket-protocol
> and x-forwarded-for headers, the values in `AcceptExt` and `Params`,
> the authorization `Credentials`, the `ExpectValue` and `OpaqueTag`
-> are case sensitive. All other values are case insensitive and
-> will be returned as lowercase.
+> are case sensitive. All values in `ContentTypeParams` are case sensitive
+> except the value of the charset parameter, which is case insensitive.
+> All other values are case insensitive and will be returned as lowercase.
>
> The headers accept, accept-encoding and cookie headers can return
> an empty list. Others will return `{error, badarg}` if the header