From ef2673b61eb640768c8e83c5c6847b50255b07a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 18 Apr 2011 12:14:13 +0200 Subject: Rename dispatch() into dispatch_rules(). --- src/cowboy_dispatcher.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cowboy_dispatcher.erl') 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, []) -> -- cgit v1.2.3