diff options
author | Loïc Hoguin <[email protected]> | 2014-09-24 15:03:10 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-09-24 15:03:10 +0300 |
commit | c56bada509a448348ba724841a27abed201b4861 (patch) | |
tree | 10162f5c47ad8394f74f12e4105e20488e9c3fd1 /doc/src/guide | |
parent | aa4d86b81f6095316813c599659014c15bf9b935 (diff) | |
download | cowboy-c56bada509a448348ba724841a27abed201b4861.tar.gz cowboy-c56bada509a448348ba724841a27abed201b4861.tar.bz2 cowboy-c56bada509a448348ba724841a27abed201b4861.zip |
Remove the error tuple return value for middlewares
It wasn't interesting compared to simply returning a halt tuple
with an explicit reply.
Diffstat (limited to 'doc/src/guide')
-rw-r--r-- | doc/src/guide/middlewares.ezdoc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/src/guide/middlewares.ezdoc b/doc/src/guide/middlewares.ezdoc index e33abfb..0c142f9 100644 --- a/doc/src/guide/middlewares.ezdoc +++ b/doc/src/guide/middlewares.ezdoc @@ -24,7 +24,6 @@ Middlewares can return one of four different values: * `{ok, Req, Env}` to continue the request processing * `{suspend, Module, Function, Args}` to hibernate * `{halt, Req}` to stop processing and move on to the next request -* `{error, StatusCode, Req}` to reply an error and close the socket Of note is that when hibernating, processing will resume on the given MFA, discarding all previous stacktrace. Make sure you keep the `Req` |