diff options
author | Loïc Hoguin <[email protected]> | 2011-03-19 18:53:59 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-19 18:53:59 +0100 |
commit | a4f8bb65739b8a3b102c244a5ef7e5aa6a9f38e4 (patch) | |
tree | b1684461aa7dab26a70ec5335c1f24b73688613f /include/types.hrl | |
parent | 2c52a30b0a209cfb0814a42b814271b168ddb2e2 (diff) | |
download | cowboy-a4f8bb65739b8a3b102c244a5ef7e5aa6a9f38e4.tar.gz cowboy-a4f8bb65739b8a3b102c244a5ef7e5aa6a9f38e4.tar.bz2 cowboy-a4f8bb65739b8a3b102c244a5ef7e5aa6a9f38e4.zip |
Add support for the '*' path.
Mostly used by the following request: OPTIONS * HTTP/1.1
Diffstat (limited to 'include/types.hrl')
-rw-r--r-- | include/types.hrl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/types.hrl b/include/types.hrl index 17882cc..1940a14 100644 --- a/include/types.hrl +++ b/include/types.hrl @@ -25,8 +25,8 @@ -type port_number() :: 0..65535. -type bindings() :: list({Key::atom(), Value::string()}). --type path_tokens() :: list(string()). --type match() :: '_' | list(string() | '_' | atom()). +-type path_tokens() :: '*' | list(string()). +-type match() :: '_' | '*' | list(string() | '_' | atom()). -type dispatch_rules() :: {Host::match(), list({Path::match(), Handler::module(), Opts::term()})}. |