mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 20:50:24 +00:00
Add two missing terminate reasons to http/loop handlers specs
This commit is contained in:
parent
517a31086b
commit
bf2b8181cc
2 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,8 @@
|
|||
-type state() :: any().
|
||||
-type terminate_reason() :: {normal, shutdown}
|
||||
| {normal, timeout} %% Only occurs in loop handlers.
|
||||
| {error, closed} %% Only occurs in loop handlers.
|
||||
| {error, overflow} %% Only occurs in loop handlers.
|
||||
| {error, atom()}.
|
||||
|
||||
-callback init({atom(), http}, Req, opts())
|
||||
|
|
|
@ -41,6 +41,8 @@
|
|||
-type state() :: any().
|
||||
-type terminate_reason() :: {normal, shutdown}
|
||||
| {normal, timeout}
|
||||
| {error, closed}
|
||||
| {error, overflow}
|
||||
| {error, atom()}.
|
||||
|
||||
-callback init({atom(), http}, Req, opts())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue