aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_dispatcher.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-18 12:14:13 +0200
committerLoïc Hoguin <[email protected]>2011-04-18 12:14:13 +0200
commitef2673b61eb640768c8e83c5c6847b50255b07a6 (patch)
treed97ea3af8f95e75dd061ed170080f9a24671000d /src/cowboy_dispatcher.erl
parentecf117b37508f864d084ed6560f95e32b9ede1ef (diff)
downloadcowboy-ef2673b61eb640768c8e83c5c6847b50255b07a6.tar.gz
cowboy-ef2673b61eb640768c8e83c5c6847b50255b07a6.tar.bz2
cowboy-ef2673b61eb640768c8e83c5c6847b50255b07a6.zip
Rename dispatch() into dispatch_rules().
Diffstat (limited to 'src/cowboy_dispatcher.erl')
-rw-r--r--src/cowboy_dispatcher.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_dispatcher.erl b/src/cowboy_dispatcher.erl
index 0743747..366aab8 100644
--- a/src/cowboy_dispatcher.erl
+++ b/src/cowboy_dispatcher.erl
@@ -39,7 +39,8 @@ split_path(Path) ->
{string:tokens(Path2, "/"), Path2, Qs}
end.
--spec match(Host::path_tokens(), Path::path_tokens(), Dispatch::dispatch())
+-spec match(Host::path_tokens(), Path::path_tokens(),
+ Dispatch::dispatch_rules())
-> {ok, Handler::module(), Opts::term(), Binds::bindings()}
| {error, notfound, host} | {error, notfound, path}.
match(_Host, _Path, []) ->