Loïc Hoguin
aba1ea4636
Add 'If-Modified-Since' and 'If-Unmodified-Since' to parse_header/2
...
Implementing the full HTTP-date type (RFC1123, RFC850, asctime).
2011-11-05 01:49:03 +01:00
Loïc Hoguin
aadd974f06
Merge branch 'parse_header-content-length' of https://github.com/nox/cowboy
...
Conflicts:
src/cowboy_http.erl
2011-11-04 12:33:40 +01:00
Anthony Ramine
04bcbc444d
Support 'Content-Length' in parse_header/2
2011-11-04 12:21:01 +01:00
Loïc Hoguin
a118f53c74
Remove unneeded whitespaces according to the HTTP spec
2011-11-04 11:58:45 +01:00
Loïc Hoguin
77b3562257
Rename cowboy_http:charset/2 to conneg/2 and use it for Accept-Encoding
...
Sorry I apparently used an outdated RFC when I was doing this.
2011-11-04 10:38:04 +01:00
Loïc Hoguin
4cd825923f
Add 'Accept-Charset' to cowboy_http_req:parse_header/2
2011-10-26 20:54:21 +02:00
Loïc Hoguin
819eb219e7
Rename private function quality/2 into qvalue/2
2011-10-26 20:13:36 +02:00
Loïc Hoguin
725e272996
cowboy_http:media_range/2 should expect to not have whitespace before it
2011-10-26 19:41:49 +02:00
Loïc Hoguin
c605c4fa40
Add 'Accept' header parsing
...
Rework the cowboy_http_req:parse_header/2 function while I was at it.
2011-10-26 04:07:08 +02:00
Loïc Hoguin
1a839954bb
Rewrite list/tokens parsing with an added whitespace function
2011-10-25 10:29:46 +02:00
Loïc Hoguin
c589922ebd
Parse Connection header tokens in a case-insensitive manner
2011-10-20 19:04:49 +02:00
Loïc Hoguin
1e7338bdd4
Rewrite the token list parsing into separate, modulable functions
...
Introduce cowboy_http's list/2, nonempty_list/2, token/2 functions.
2011-10-17 10:29:14 +02:00
Loïc Hoguin
bf5c2717bc
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.
2011-10-05 13:32:20 +02:00