diff options
Diffstat (limited to 'docs/en/cowboy/2.6/manual/cowboy_stream/index.html')
-rw-r--r-- | docs/en/cowboy/2.6/manual/cowboy_stream/index.html | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/docs/en/cowboy/2.6/manual/cowboy_stream/index.html b/docs/en/cowboy/2.6/manual/cowboy_stream/index.html index a10e6e62..38b2391a 100644 --- a/docs/en/cowboy/2.6/manual/cowboy_stream/index.html +++ b/docs/en/cowboy/2.6/manual/cowboy_stream/index.html @@ -71,7 +71,7 @@ <p>Extra care must be taken when implementing stream handlers to ensure compatibility. While some modification of the events and commands is allowed, it is generally not a good idea to completely discard them.</p> <h2 id="_callbacks">Callbacks</h2> <p>Stream handlers must implement the following interface:</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -105,7 +105,7 @@ http://www.gnu.org/software/src-highlite --> <p>The following commands are defined:</p> <h3 id="inform_command">inform</h3> <p>Send an informational response to the client.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -114,7 +114,7 @@ http://www.gnu.org/software/src-highlite --> <p>Any number of informational responses may be sent, but only until the final response is sent.</p> <h3 id="response_command">response</h3> <p>Send a response to the client.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -124,7 +124,7 @@ http://www.gnu.org/software/src-highlite --> <p>No more data can be sent after this command.</p> <h3 id="headers_command">headers</h3> <p>Initiate a response to the client.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -133,7 +133,7 @@ http://www.gnu.org/software/src-highlite --> <p>This initiates a response to the client. The stream will end when a data command with the <code>fin</code> flag or a trailer command is returned.</p> <h3 id="data_command">data</h3> <p>Send data to the client.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -141,7 +141,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <h3 id="trailers_command">trailers</h3> <p>Send response trailers to the client.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -149,7 +149,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <h3 id="push_command">push</h3> <p>Push a resource to the client.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -160,7 +160,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <p>The command will be ignored if the protocol does not provide any server push mechanism.</p> <h3 id="_flow">flow</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -169,7 +169,7 @@ http://www.gnu.org/software/src-highlite --> <p>Request more data to be read from the request body. The exact behavior depends on the protocol.</p> <h3 id="_spawn">spawn</h3> <p>Inform Cowboy that a process was spawned and should be supervised.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -177,7 +177,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <h3 id="_error_response">error_response</h3> <p>Send an error response if no response was sent previously.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -185,7 +185,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <h3 id="switch_protocol_command">switch_protocol</h3> <p>Switch to a different protocol.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -195,7 +195,7 @@ http://www.gnu.org/software/src-highlite --> <p>Note that the 101 informational response will not be sent after a final response.</p> <h3 id="_stop">stop</h3> <p>Stop the stream.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -206,7 +206,7 @@ http://www.gnu.org/software/src-highlite --> <p>To indicate that an error occurred, either use <code>error_response</code> before stopping, or use <code>internal_error</code>.</p> <h3 id="_internal_error">internal_error</h3> <p>Stop the stream with an error.</p> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -236,7 +236,7 @@ http://www.gnu.org/software/src-highlite --> </ul> <h2 id="_types">Types</h2> <h3 id="_commands">commands()</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -244,7 +244,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <p>See the <a href="#commands">list of commands</a> for details.</p> <h3 id="_fin">fin()</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -252,7 +252,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <p>Used in commands and events to indicate that this is the end of the stream.</p> <h3 id="_partial_req">partial_req()</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -270,7 +270,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <p>Partial request information received when an early error is detected.</p> <h3 id="_reason">reason()</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -286,7 +286,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <p>Reason for the stream termination.</p> <h3 id="_resp_command">resp_command()</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -295,7 +295,7 @@ http://www.gnu.org/software/src-highlite --> </div></div> <p>See the <a href="#response_command">response command</a> for details.</p> <h3 id="_streamid">streamid()</h3> -<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.8 +<div class="listingblock"><div class="content"><!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> @@ -350,6 +350,8 @@ http://www.gnu.org/software/src-highlite --> + <li><a href="/docs/en/cowboy/2.7/manual">2.7</a></li> + <li><a href="/docs/en/cowboy/2.6/manual">2.6</a></li> <li><a href="/docs/en/cowboy/2.5/manual">2.5</a></li> |