diff options
author | Loïc Hoguin <[email protected]> | 2017-03-27 10:26:13 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-03-27 10:26:13 +0200 |
commit | 10dfd8c910bce3ae71146f8f13eef25b34ec093a (patch) | |
tree | e491e7602e69c5eb82dc7ea5b25c269f0c4cd4d2 /examples/cookie/src | |
parent | 14a01f71cb495ef6be5e31122857d1e4438cecfe (diff) | |
download | cowboy-10dfd8c910bce3ae71146f8f13eef25b34ec093a.tar.gz cowboy-10dfd8c910bce3ae71146f8f13eef25b34ec093a.tar.bz2 cowboy-10dfd8c910bce3ae71146f8f13eef25b34ec093a.zip |
Add the early_error cowboy_stream callback
This callback is called when an error occurs before the request
(including headers, excluding body) was fully received. The
init/3 callback will not be called. The callback receives the
partial Req object (possibly empty), the reason for the error
and the response command that the server will send. It allows
you to be aware of the error and possibly modify the response
before it is sent.
Diffstat (limited to 'examples/cookie/src')
0 files changed, 0 insertions, 0 deletions