aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_sub_protocol.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_sub_protocol.erl')
-rw-r--r--src/cowboy_sub_protocol.erl7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cowboy_sub_protocol.erl b/src/cowboy_sub_protocol.erl
index 713c3cd..f177263 100644
--- a/src/cowboy_sub_protocol.erl
+++ b/src/cowboy_sub_protocol.erl
@@ -15,9 +15,6 @@
-module(cowboy_sub_protocol).
--callback upgrade(Req, Env, module(), any())
- -> {ok, Req, Env}
- | {suspend, module(), atom(), [any()]}
- | {halt, Req}
- | {error, cowboy:http_status(), Req}
+-callback upgrade(Req, Env, module(), any(), timeout(), run | hibernate)
+ -> {ok, Req, Env} | {suspend, module(), atom(), [any()]} | {halt, Req}
when Req::cowboy_req:req(), Env::cowboy_middleware:env().