aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_dispatcher.erl3
-rw-r--r--src/cowboy_http_protocol.erl2
2 files changed, 3 insertions, 2 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, []) ->
diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl
index 0094e8b..402224d 100644
--- a/src/cowboy_http_protocol.erl
+++ b/src/cowboy_http_protocol.erl
@@ -22,7 +22,7 @@
-record(state, {
socket :: inet:socket(),
transport :: module(),
- dispatch :: dispatch(),
+ dispatch :: dispatch_rules(),
handler :: {Handler::module(), Opts::term()},
req_empty_lines = 0 :: integer(),
max_empty_lines :: integer(),