aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-15 14:47:37 +0200
committerLoïc Hoguin <[email protected]>2013-05-15 14:47:37 +0200
commitbf2b8181ccd5f89a8355087412cf8db08f3b32ce (patch)
tree57e7ae1a9eb2588c32ebdd56196ffff5d0951d21 /src/cowboy_http_handler.erl
parent517a31086b5309f09b414df2d1a58a95474e4e43 (diff)
downloadcowboy-bf2b8181ccd5f89a8355087412cf8db08f3b32ce.tar.gz
cowboy-bf2b8181ccd5f89a8355087412cf8db08f3b32ce.tar.bz2
cowboy-bf2b8181ccd5f89a8355087412cf8db08f3b32ce.zip
Add two missing terminate reasons to http/loop handlers specs
Diffstat (limited to 'src/cowboy_http_handler.erl')
-rw-r--r--src/cowboy_http_handler.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_http_handler.erl b/src/cowboy_http_handler.erl
index 0393153..3ad8f88 100644
--- a/src/cowboy_http_handler.erl
+++ b/src/cowboy_http_handler.erl
@@ -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())