aboutsummaryrefslogtreecommitdiffstats
path: root/include/types.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-19 18:53:59 +0100
committerLoïc Hoguin <[email protected]>2011-03-19 18:53:59 +0100
commita4f8bb65739b8a3b102c244a5ef7e5aa6a9f38e4 (patch)
treeb1684461aa7dab26a70ec5335c1f24b73688613f /include/types.hrl
parent2c52a30b0a209cfb0814a42b814271b168ddb2e2 (diff)
downloadcowboy-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.hrl4
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()})}.