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 | 6 |
1 files changed, 3 insertions, 3 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 85938072..a10e6e62 100644 --- a/docs/en/cowboy/2.6/manual/cowboy_stream/index.html +++ b/docs/en/cowboy/2.6/manual/cowboy_stream/index.html @@ -220,7 +220,7 @@ http://www.gnu.org/software/src-highlite --> <p>Cowboy will forward all messages sent to the stream to the <code>info/3</code> callback. To send a message to a stream, send a message to the connection process with the form <code>{{Pid, StreamID}, Msg}</code>. The connection process will then forward <code>Msg</code> to the stream handlers.</p> <p>Cowboy will also forward the exit signals for the processes that the stream spawned.</p> <p>When Cowboy needs to send a response it will trigger an event that looks exactly like the corresponding command. This event must be returned to be processed by Cowboy (which is done automatically when using <a href="../cowboy_stream_h">cowboy_stream_h(3)</a>).</p> -<p>Cowboy may trigger the following events on its own, regardless of the stream handlers configured: <a href="../inform_command">inform</a> (to send a 101 informational response when upgrading to HTTP/2 or Websocket), <a href="../response_command">response</a>, <a href="../headers_command">headers</a>, <a href="../data_command">data</a> and <a href="../switch_protocol_command">switch_protocol</a>.</p> +<p>Cowboy may trigger the following events on its own, regardless of the stream handlers configured: <a href="#inform_command">inform</a> (to send a 101 informational response when upgrading to HTTP/2 or Websocket), <a href="#response_command">response</a>, <a href="#headers_command">headers</a>, <a href="#data_command">data</a> and <a href="#switch_protocol_command">switch_protocol</a>.</p> <h2 id="_exports">Exports</h2> <p>The following function should be called by modules implementing stream handlers to execute the next stream handler in the list:</p> <ul><li><a href="../cowboy_stream.init">cowboy_stream:init(3)</a> - Initialize a stream @@ -242,7 +242,7 @@ http://www.lorenzobettini.it http://www.gnu.org/software/src-highlite --> <pre><tt><b><font color="#000000">commands</font></b>() <font color="#990000">::</font> [<font color="#009900">Command</font>]</tt></pre> </div></div> -<p>See the <a href="../commands">list of commands</a> for details.</p> +<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 by Lorenzo Bettini @@ -293,7 +293,7 @@ http://www.gnu.org/software/src-highlite --> <pre><tt><b><font color="#000000">resp_command</font></b>() <font color="#990000">::</font> {<font color="#FF6600">response</font>, <b><font color="#000000">cowboy:http_status</font></b>(), <b><font color="#000000">cowboy:http_headers</font></b>(), <b><font color="#000000">cowboy_req:resp_body</font></b>()}</tt></pre> </div></div> -<p>See the <a href="../response_command">response command</a> for details.</p> +<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 by Lorenzo Bettini |