diff options
author | Loïc Hoguin <[email protected]> | 2017-10-29 19:52:27 +0000 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-10-29 21:03:04 +0000 |
commit | f3d6b05b863fe177a34a8a6ba48c5f263ef8cf82 (patch) | |
tree | fc3235ad43880f29186bce373a3c79057c83e060 /src/cowboy_stream_h.erl | |
parent | f4331f7c169309c9017b9628fe3757fc5312270b (diff) | |
download | cowboy-f3d6b05b863fe177a34a8a6ba48c5f263ef8cf82.tar.gz cowboy-f3d6b05b863fe177a34a8a6ba48c5f263ef8cf82.tar.bz2 cowboy-f3d6b05b863fe177a34a8a6ba48c5f263ef8cf82.zip |
Add cowboy_req:inform/2,3
User code can now send as many 1xx responses as necessary.
Diffstat (limited to 'src/cowboy_stream_h.erl')
-rw-r--r-- | src/cowboy_stream_h.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cowboy_stream_h.erl b/src/cowboy_stream_h.erl index 5c674dd..c631c87 100644 --- a/src/cowboy_stream_h.erl +++ b/src/cowboy_stream_h.erl @@ -119,6 +119,8 @@ info(_StreamID, {read_body_timeout, Ref}, State=#state{pid=Pid, read_body_ref=Re info(_StreamID, {read_body_timeout, _}, State) -> {[], State}; %% Response. +info(_StreamID, Inform = {inform, _, _}, State) -> + {[Inform], State}; info(_StreamID, Response = {response, _, _, _}, State) -> {[Response], State}; info(_StreamID, Headers = {headers, _, _}, State) -> |