aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-11-14 16:46:31 +0100
committerLoïc Hoguin <[email protected]>2013-11-14 16:46:31 +0100
commit119d52295f5723ca5ade6661a11621a88e021677 (patch)
tree97879593d909a6e1f7839d04a6a25273f0eec83f /src
parentd87192b0ed4d2d06ee74ed1b7f1fbb665fae2afe (diff)
downloadcowboy-119d52295f5723ca5ade6661a11621a88e021677.tar.gz
cowboy-119d52295f5723ca5ade6661a11621a88e021677.tar.bz2
cowboy-119d52295f5723ca5ade6661a11621a88e021677.zip
Add documentation for cowboy_spdy
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_spdy.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cowboy_spdy.erl b/src/cowboy_spdy.erl
index bc843ec..dd7882c 100644
--- a/src/cowboy_spdy.erl
+++ b/src/cowboy_spdy.erl
@@ -14,10 +14,6 @@
%% @doc SPDY protocol handler.
%%
-%% The available options are:
-%% <dl>
-%% </dl>
-%%
%% Note that there is no need to monitor these processes when using Cowboy as
%% an application as it already supervises them under the listener supervisor.
-module(cowboy_spdy).
@@ -71,7 +67,10 @@
children = [] :: [#child{}]
}).
--type opts() :: [].
+-type opts() :: [{env, cowboy_middleware:env()}
+ | {middlewares, [module()]}
+ | {onrequest, cowboy:onrequest_fun()}
+ | {onresponse, cowboy:onresponse_fun()}].
-export_type([opts/0]).
%% API.