0
Fork 0
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:
Loïc Hoguin 2013-05-15 14:47:37 +02:00
parent 517a31086b
commit bf2b8181cc
2 changed files with 4 additions and 0 deletions

View file

@ -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())

View file

@ -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())