diff options
author | Anthony Ramine <[email protected]> | 2011-05-09 14:31:06 +0200 |
---|---|---|
committer | Anthony Ramine <[email protected]> | 2011-05-09 15:14:38 +0200 |
commit | 0ca8f1364b857632030dbc3735ce789686361073 (patch) | |
tree | ba2af89911ea808263913e27ebf227f18a2ad29c /test/chunked_handler.erl | |
parent | 094f5c1735f92bb13b3b02440f24781d37a393cb (diff) | |
download | cowboy-0ca8f1364b857632030dbc3735ce789686361073.tar.gz cowboy-0ca8f1364b857632030dbc3735ce789686361073.tar.bz2 cowboy-0ca8f1364b857632030dbc3735ce789686361073.zip |
Implement path_info feature
The dispatcher now accepts '...' as the leading segment of Host and the
trailing segment of Path, this special atom matches any remaining path tail.
When given "cowboy.bugs.dev-extend.eu", host rule ['...', <<"dev-extend">>,
<<"eu">>] matches and fills host_info with [<<"cowboy">>, <<"bugs">>].
When given "/a/b/c/d", path rule [<<"a">>, <<"b">>, '...'] matches and fills
path_info with [<<"c">>, <<"d">>].
Diffstat (limited to 'test/chunked_handler.erl')
0 files changed, 0 insertions, 0 deletions