diff options
author | Loïc Hoguin <[email protected]> | 2011-06-27 23:36:17 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-06-27 23:36:17 +0200 |
commit | 58267689f09cb6a4526da760f48d5fb7ccc59b2c (patch) | |
tree | c97e19b5c7f6c3676434136654b33a3ce7989635 /src/cowboy_http_handler.erl | |
parent | 227529761c835637a5dbf77c83160d62a71ec720 (diff) | |
download | cowboy-58267689f09cb6a4526da760f48d5fb7ccc59b2c.tar.gz cowboy-58267689f09cb6a4526da760f48d5fb7ccc59b2c.tar.bz2 cowboy-58267689f09cb6a4526da760f48d5fb7ccc59b2c.zip |
Add the remaining missing specs
Found thanks to warn_missing_spec and added with the help of typer.
Eunit functions do not have specs yet however.
Diffstat (limited to 'src/cowboy_http_handler.erl')
-rw-r--r-- | src/cowboy_http_handler.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_http_handler.erl b/src/cowboy_http_handler.erl index 8e36d0c..67f07bc 100644 --- a/src/cowboy_http_handler.erl +++ b/src/cowboy_http_handler.erl @@ -15,6 +15,8 @@ -module(cowboy_http_handler). -export([behaviour_info/1]). +-spec behaviour_info(_) + -> undefined | [{handle, 2} | {init, 3} | {terminate, 2}, ...]. behaviour_info(callbacks) -> [{init, 3}, {handle, 2}, {terminate, 2}]; behaviour_info(_Other) -> |