diff options
author | Loïc Hoguin <[email protected]> | 2011-10-05 03:17:13 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-10-05 13:32:20 +0200 |
commit | bf5c2717bc49d82f6415536c7ff0be2e1d8361a5 (patch) | |
tree | b5bbbf1e3e25315438c5afc1d21cf017c6e2225b /include | |
parent | 9a775cce3c2cdab064dd79df29914296cf642a8d (diff) | |
download | cowboy-bf5c2717bc49d82f6415536c7ff0be2e1d8361a5.tar.gz cowboy-bf5c2717bc49d82f6415536c7ff0be2e1d8361a5.tar.bz2 cowboy-bf5c2717bc49d82f6415536c7ff0be2e1d8361a5.zip |
Parse 'Connection' headers as a list of tokens
Replaces the 'Connection' interpretation in cowboy_http_protocol
from raw value to the parsed value, looking for a single token
matching close/keep-alive instead of the whole raw value (which
could contain more than one token, for example with Firefox 6+
using websocket).
Introduce the functions cowboy_http_req:parse_header/2 and /3
to semantically parse the header values and return a proper
Erlang term.
Diffstat (limited to 'include')
-rw-r--r-- | include/http.hrl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/http.hrl b/include/http.hrl index 2364daa..3178381 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -58,6 +58,7 @@ raw_qs = undefined :: undefined | binary(), bindings = undefined :: undefined | cowboy_dispatcher:bindings(), headers = [] :: http_headers(), + p_headers = [] :: [any()], %% @todo Improve those specs. cookies = undefined :: undefined | http_cookies(), %% Request body. |