From a4f8bb65739b8a3b102c244a5ef7e5aa6a9f38e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 19 Mar 2011 18:53:59 +0100 Subject: Add support for the '*' path. Mostly used by the following request: OPTIONS * HTTP/1.1 --- include/types.hrl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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()})}. -- cgit v1.2.3