0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

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.
This commit is contained in:
Loïc Hoguin 2011-06-27 23:36:17 +02:00
parent 227529761c
commit 58267689f0
4 changed files with 12 additions and 2 deletions

View file

@ -15,6 +15,8 @@
-module(cowboy_http_websocket_handler).
-export([behaviour_info/1]).
-spec behaviour_info(_) -> undefined | [{websocket_handle, 3}
| {websocket_init, 3} | {websocket_terminate, 3}, ...].
behaviour_info(callbacks) ->
[{websocket_init, 3}, {websocket_handle, 3}, {websocket_terminate, 3}];
behaviour_info(_Other) ->