Browse Source

Merge branch 'fix/callback_specs' of https://github.com/keynslug/cowboy

Loïc Hoguin 12 years ago
parent
commit
bdc8342595
2 changed files with 2 additions and 0 deletions
  1. 1 0
      src/cowboy_http_handler.erl
  2. 1 0
      src/cowboy_loop_handler.erl

+ 1 - 0
src/cowboy_http_handler.erl

@@ -45,6 +45,7 @@
 	| {loop, Req, state(), timeout(), hibernate}
 	| {shutdown, Req, state()}
 	| {upgrade, protocol, module()}
+	| {upgrade, protocol, module(), Req, opts()}
 	when Req::cowboy_req:req().
 -callback handle(Req, State) -> {ok, Req, State}
 	when Req::cowboy_req:req(), State::state().

+ 1 - 0
src/cowboy_loop_handler.erl

@@ -51,6 +51,7 @@
 	| {loop, Req, state(), timeout(), hibernate}
 	| {shutdown, Req, state()}
 	| {upgrade, protocol, module()}
+	| {upgrade, protocol, module(), Req, opts()}
 	when Req::cowboy_req:req().
 -callback info(any(), Req, State)
 	-> {ok, Req, State}