aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
AgeCommit message (Collapse)Author
2014-12-17Add test cases taken from RFC7230Loïc Hoguin
2014-12-17Add cow_http_hd:parse_upgrade/1Loïc Hoguin
From RFC7230. Compared to the current Cowboy implementation we added support for protocol-version. We return protocol-name/protocol-version as a single binary as these will typically be matched directly.
2014-12-17Add cow_date:parse_date/1 and move date parsing code thereLoïc Hoguin
2014-12-16Add cow_http_hd:parse_last_modified/1Loïc Hoguin
From RFC7232.
2014-12-16Add cow_http_hd:parse_date/1Loïc Hoguin
From RFC7231.
2014-12-16Add cow_http_hd:parse_if_unmodified_since/1Loïc Hoguin
2014-12-16Add cow_http_hd:parse_if_modified_since/1Loïc Hoguin
From RFC7231 and RFC7232. The new code is faster than the one in Cowboy: 2 times faster for fixdate format, 2.5 times faster for rfc850 format and 3+ times faster for asctime format. Unlike previous code, there is no parsing speed difference between the 3 different date formats.
2014-12-16Add a property for cow_http_hd:parse_transfer_encoding/1Loïc Hoguin
2014-12-16Remove an unused test functionLoïc Hoguin
2014-12-16Add property for cow_http_hd:parse_max_forwards/1Loïc Hoguin
2014-12-16Add property for cow_http_hd:parse_expect/1Loïc Hoguin
2014-12-16Add a property for cow_http_hd:parse_connection/1Loïc Hoguin
2014-12-16Fix a shadow var warning in a propertyLoïc Hoguin
2014-12-15Add a property for cow_http_hd:parse_accept_language/1Loïc Hoguin
2014-12-15Add a property for cow_http_hd:parse_accept_encoding/1Loïc Hoguin
2014-12-15Add a property for cow_http_hd:parse_accept_charset/1Loïc Hoguin
2014-12-15Add a property for cow_http_hd:parse_accept/1Loïc Hoguin
Also fixes a few bugs uncovered by the property, and also allow empty Accept values as per RFC7231.
2014-12-14Add cow_http_hd:parse_content_type/1Loïc Hoguin
From RFC7231. This implementation is about 4 times faster than the one currently found in Cowboy.
2014-12-14Add a property for parse_content_length/1Loïc Hoguin
2014-12-13Add testing for bad input for cow_http_hd:parse_content_length/1Loïc Hoguin
2014-12-13Add cow_http_hd:parse_accept_language/1Loïc Hoguin
From RFC7231. This code is more than twice faster as the current Cowboy code, while filtering out more bad cases.
2014-12-13Add cow_http_hd:parse_accept_encoding/1Loïc Hoguin
From RFC7231.
2014-12-13Add cow_http_hd:parse_charset/1Loïc Hoguin
From RFC7231. This code is more than twice faster as the current Cowboy code, while filtering out more bad cases.
2014-12-13Add cow_http_hd:parse_accept/1Loïc Hoguin
From RFC7231. This code is more than twice faster as the current Cowboy code, while filtering out more bad cases.
2014-12-12Add cow_http_hd:parse_max_forwards/1Loïc Hoguin
From RFC7231.
2014-12-12Add cow_http_hd:parse_expect/1Loïc Hoguin
From RFC7231.
2014-02-27Add cow_http_hd:parse_{connection,content_length,transfer_encoding}/1Loïc Hoguin
Initially imported from Cowboy, then optimized.