mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 12:40:25 +00:00
Update specs that were too wide
This commit is contained in:
parent
bc3b122e89
commit
8cc353114e
3 changed files with 10 additions and 20 deletions
|
@ -58,7 +58,7 @@
|
|||
}).
|
||||
|
||||
-spec upgrade(Req, Env, module(), any())
|
||||
-> {ok, Req, Env} | {error, 400, Req}
|
||||
-> {ok, Req, Env}
|
||||
| {suspend, module(), atom(), [any()]}
|
||||
when Req::cowboy_req:req(), Env::cowboy_middleware:env().
|
||||
upgrade(Req, Env, Handler, HandlerOpts) ->
|
||||
|
@ -124,8 +124,7 @@ websocket_extensions(State, Req) ->
|
|||
end.
|
||||
|
||||
-spec handler_init(#state{}, Req, any())
|
||||
-> {ok, Req, cowboy_middleware:env()} | {error, 400, Req}
|
||||
| {suspend, module(), atom(), [any()]}
|
||||
-> {ok, Req, cowboy_middleware:env()} | {suspend, module(), atom(), [any()]}
|
||||
when Req::cowboy_req:req().
|
||||
handler_init(State=#state{env=Env, transport=Transport,
|
||||
handler=Handler}, Req, HandlerOpts) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue