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:
parent
bf2b8181cc
commit
ce7981deb3
2 changed files with 2 additions and 2 deletions
|
@ -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().
|
||||
|
|
|
@ -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().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue