aboutsummaryrefslogtreecommitdiffstats
path: root/test/dispatcher_prop.erl
AgeCommit message (Collapse)Author
2012-09-26Optimize cowboy_protocolLoïc Hoguin
* #state{} changes are avoided where possible * #state{} is now smaller and use less memory * the Req object is created only after the whole request is parsed * parsing makes use of a single binary match context * external calls are avoided in the critical path * URL fragment is now extracted properly (retrieval API next commit) * argument orders to local functions modified to avoid extra operations * dispatching waits as long as possible before tokenizing host/path * handler opts are no longer shown in the error messages except in init The code may not look as beautiful as it was before. But it really is, for parsing code. The parsing section of the file may be skipped if your eyes start to burn.
2012-09-24Removal of binary:split from cowboy_dispatcher and small optimizationsLoïc Hoguin
The internal host_tokens value now has host tokens in reverse order compared to before. This allows us to remove one lists:reverse call.
2012-05-23Update version to 0.6.00.6.0Loïc Hoguin
Also update the CHANGELOG and copyright years.
2011-07-26Add a PropEr test for cowboy_dispatcher:split_host/1Loïc Hoguin
Mostly thanks to Magnus Klaar as it took me a while to figure out how PropEr tests had to be written.