aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_spdy.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_spdy.erl')
-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.