From 58267689f09cb6a4526da760f48d5fb7ccc59b2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 27 Jun 2011 23:36:17 +0200 Subject: 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. --- src/cowboy_http_websocket_handler.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cowboy_http_websocket_handler.erl') diff --git a/src/cowboy_http_websocket_handler.erl b/src/cowboy_http_websocket_handler.erl index 3de1182..30cb2e1 100644 --- a/src/cowboy_http_websocket_handler.erl +++ b/src/cowboy_http_websocket_handler.erl @@ -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) -> -- cgit v1.2.3