0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 13:10:24 +00:00

Fix incorrect spec for the middleware callback

This commit is contained in:
Loïc Hoguin 2013-05-15 14:49:09 +02:00
parent bf2b8181cc
commit ce7981deb3
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@
-callback execute(Req, Env)
-> {ok, Req, Env}
| {suspend, module(), atom(), any()}
| {suspend, module(), atom(), [any()]}
| {halt, Req}
| {error, cowboy_http:status(), Req}
when Req::cowboy_req:req(), Env::env().

View file

@ -31,7 +31,7 @@
-callback upgrade(Req, Env, module(), any())
-> {ok, Req, Env}
| {suspend, module(), atom(), any()}
| {suspend, module(), atom(), [any()]}
| {halt, Req}
| {error, cowboy_http:status(), Req}
when Req::cowboy_req:req(), Env::cowboy_middleware:env().