aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
AgeCommit message (Collapse)Author
2018-03-13Fix the parsing of the x-forwarded-for headerLoïc Hoguin
2018-03-05The Websocket subprotocol tokens are case sensitiveLoïc Hoguin
As clarified in https://tools.ietf.org/html/rfc7936 the IANA registry only accepts case insensitive values for clarity's sake but the actual tokens are case sensitive.
2017-07-10Switch from Triq to ProperLoïc Hoguin
2016-10-04Fix Dialyzer warningsLoïc Hoguin
2016-06-07Add cow_http_hd:access_control_max_age/1Andrei Nesterov
2016-06-07Add cow_http_hd:access_control_expose_headers/1Andrei Nesterov
2016-06-07Add cow_http_hd:access_control_allow_origin/1Andrei Nesterov
2016-06-07Add cow_http_hd:access_control_allow_methods/1Andrei Nesterov
2016-06-07Add cow_http_hd:access_control_allow_headers/1Andrei Nesterov
2016-06-07Add internal cow_http_hd:join_token_list/1, cow_http_hd:join_token_list/2Andrei Nesterov
2016-06-07Add cow_http_hd:access_control_allow_credentials/0Andrei Nesterov
2016-06-07Add cow_http_hd:parse_access_control_request_method/1Andrei Nesterov
2016-06-07Add cow_http_hd:parse_access_control_request_headers/1Andrei Nesterov
2016-06-07Add cow_http_hd:parse_origin/1Andrei Nesterov
2016-03-13Parse the settings payload directly in cow_http_hd:parse_http2_settings/1Loïc Hoguin
2016-03-12Add cow_http_hd:parse_http2_settings/1Loïc Hoguin
No tests or benchmarks, we just call base64:decode on the value.
2015-06-11Remove an outdated commentLoïc Hoguin
2015-03-12MaintenanceLoïc Hoguin
* Update copyright years. * Update erlang.mk. * Fix triq testing.
2015-01-07Use 'or' instead of 'orelse' in cow_http_hdLoïc Hoguin
About the same except for functions with tons of tests per clauses, like parse_content_language/1.
2015-01-04Simplify the cow_http_hd codeLoïc Hoguin
Also rename the macros for inline lowercasing to ?LOWER, and move the type detection macros to cow_parse.hrl.
2015-01-03Add @todos in cow_http_hd for additional headersLoïc Hoguin
2015-01-02Make sure tokens are non-empty in cow_http_hdLoïc Hoguin
2015-01-02Add cow_http_hd:parse_proxy_authenticate/1Loïc Hoguin
From RFC7235. See cow_http_hd:parse_www_authenticate/1.
2015-01-02Add cow_http_hd:parse_www_authenticate/1Loïc Hoguin
From RFC7235, RFC2617 and RFC6750. Features an attempt at simplifying the code using ?IS_WS macro.
2014-12-31Add cow_http_hd:parse_proxy_authorization/1Loïc Hoguin
From RFC7235. See cow_http_hd:parse_authorization/1.
2014-12-31Add cow_http_hd:parse_authorization/1Loïc Hoguin
Supports Basic, Digest and Bearer schemes only. From RFC7235, RFC2617 and RFC6750.
2014-12-31Remove an extraneous empty lineLoïc Hoguin
2014-12-29Add cow_http_hd:parse_x_forwarded_for/1Loïc Hoguin
From thin air.
2014-12-29Add cow_http_hd:parse_host/1, remove cow_http:parse_fullhost/1Loïc Hoguin
From RFC7230 and RFC3986. The new function now validates that the characters are correct, but does not go as far as validate segment sizes or number of segments. Its main purpose is still to split host and port.
2014-12-28Add cow_http_hd:parse_pragma/1Loïc Hoguin
We go for an exact <<"no-cache">> match because this is the only directive that was ever defined, because the header is only kept for backward compatible reasons with HTTP/1.0 caches, and because for all other uses the cache-control header is preferred.
2014-12-28Add a test for cow_http_hd:parse_content_length/1Loïc Hoguin
Negative number.
2014-12-28Add cow_http_hd:parse_content_range/1Loïc Hoguin
From RFC7233.
2014-12-27Add cow_http_hd:parse_range/1Loïc Hoguin
From RFC7233.
2014-12-26Add cow_http_hd:parse_if_range/1Loïc Hoguin
From RFC7233.
2014-12-26Add cow_http_hd:parse_accept_ranges/1Loïc Hoguin
From RFC7233.
2014-12-26Fix a parse_max_forwards testLoïc Hoguin
2014-12-26Add cow_http_hd:parse_retry_after/1Loïc Hoguin
From RFC7231.
2014-12-26Improve internal cow_http_hd function token_ci_list/2Loïc Hoguin
We now ensure that the tokens are made of token characters only.
2014-12-26Add cow_http_hd:parse_allow/1Loïc Hoguin
From RFC7231.
2014-12-26Add cow_http_hd:parse_age/1Loïc Hoguin
From RFC7234.
2014-12-26Add cow_http_hd:parse_vary/1Loïc Hoguin
From RFC7231.
2014-12-26Fix a parse_upgrade testLoïc Hoguin
2014-12-26Add missing export for second previous commitLoïc Hoguin
2014-12-26Simplify the code for parsing 1*DIGIT header valuesLoïc Hoguin
Follow-up from the change that ensured we don't get any extra whitespace following the value. We can now call binary_to_integer/1 which is more efficient.
2014-12-25Add cow_http_hd:parse_sec_websocket_version_resp/1Loïc Hoguin
From RFC6455. Ho ho ho!
2014-12-24Add cow_http_hd:parse_sec_websocket_protocol_resp/1Loïc Hoguin
From RFC6455.
2014-12-24Use _req instead of _client for request-specific parsersLoïc Hoguin
2014-12-24Add dummy functions for Sec-WebSocket-(Accept|Key) headersLoïc Hoguin
From RFC6455. These base64 values are expected to be matched directly in the first case, or hashed to generate a new base64 value, therefore no parsing or validation is required.
2014-12-24Fix a variable shadow issue in the testsLoïc Hoguin
2014-12-24Add cow_http_hd:parse_te/1Loïc Hoguin
From RFC7230.