diff options
author | Loïc Hoguin <[email protected]> | 2019-10-07 13:25:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-07 13:25:49 +0200 |
commit | 2e8fcb9a9ef9ef9beff25ed4d48cf0d90609a69b (patch) | |
tree | 96193a4e156389d67172cde5894d70a5e0395d91 /doc/src/manual/cowboy_stream.asciidoc | |
parent | 5cdf78fd570a5239a83e8dce3705e53a08c47f7e (diff) | |
download | cowboy-2e8fcb9a9ef9ef9beff25ed4d48cf0d90609a69b.tar.gz cowboy-2e8fcb9a9ef9ef9beff25ed4d48cf0d90609a69b.tar.bz2 cowboy-2e8fcb9a9ef9ef9beff25ed4d48cf0d90609a69b.zip |
Add cowboy_req:cast/2
Better than sending messages manually.
Diffstat (limited to 'doc/src/manual/cowboy_stream.asciidoc')
-rw-r--r-- | doc/src/manual/cowboy_stream.asciidoc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/manual/cowboy_stream.asciidoc b/doc/src/manual/cowboy_stream.asciidoc index b1cab3f..868deac 100644 --- a/doc/src/manual/cowboy_stream.asciidoc +++ b/doc/src/manual/cowboy_stream.asciidoc @@ -277,9 +277,8 @@ relevant option's documentation for details. Cowboy will forward all messages sent to the stream to the `info/3` callback. To send a message to a stream, -send a message to the connection process with the form -`{{Pid, StreamID}, Msg}`. The connection process will -then forward `Msg` to the stream handlers. +the function link:man:cowboy_req:cast(3)[cowboy_req:cast(3)] +can be used. Cowboy will also forward the exit signals for the processes that the stream spawned. @@ -403,4 +402,5 @@ tuple. link:man:cowboy(7)[cowboy(7)], link:man:cowboy_http(3)[cowboy_http(3)], -link:man:cowboy_http2(3)[cowboy_http2(3)] +link:man:cowboy_http2(3)[cowboy_http2(3)], +link:man:cowboy_req:cast(3)[cowboy_req:cast(3)] |