aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy_req.stream_body.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-12-11 11:00:47 +0100
committerLoïc Hoguin <[email protected]>2017-12-11 11:00:47 +0100
commit4c22bdbcb75ecc8176e0f42899ed8c03729cc628 (patch)
tree554f97be48ae97e25af5d59d440acef581ae27c9 /doc/src/manual/cowboy_req.stream_body.asciidoc
parent17719a136dbe520436ae4aa5dd4827a19b1a5348 (diff)
downloadcowboy-4c22bdbcb75ecc8176e0f42899ed8c03729cc628.tar.gz
cowboy-4c22bdbcb75ecc8176e0f42899ed8c03729cc628.tar.bz2
cowboy-4c22bdbcb75ecc8176e0f42899ed8c03729cc628.zip
Document 2.2 changes and the new stream_trailers function
Diffstat (limited to 'doc/src/manual/cowboy_req.stream_body.asciidoc')
-rw-r--r--doc/src/manual/cowboy_req.stream_body.asciidoc7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/src/manual/cowboy_req.stream_body.asciidoc b/doc/src/manual/cowboy_req.stream_body.asciidoc
index e0dbd59..17ba96f 100644
--- a/doc/src/manual/cowboy_req.stream_body.asciidoc
+++ b/doc/src/manual/cowboy_req.stream_body.asciidoc
@@ -24,7 +24,9 @@ function.
The second argument indicates if this call is the final
call. Use the `nofin` value until you know no more data
will be sent. The final call should use `fin` (possibly
-with an empty data value).
+with an empty data value) or be a call to the
+link:man:cowboy_req:stream_trailers(3)[cowboy_req:stream_trailers(3)]
+function.
Note that not using `fin` for the final call is not an
error; Cowboy will take care of it when the request
@@ -74,4 +76,5 @@ cowboy_req:stream_body(<<"World!\n">>, fin, Req).
== See also
link:man:cowboy_req(3)[cowboy_req(3)],
-link:man:cowboy_req:stream_reply(3)[cowboy_req:stream_reply(3)]
+link:man:cowboy_req:stream_reply(3)[cowboy_req:stream_reply(3)],
+link:man:cowboy_req:stream_trailers(3)[cowboy_req:stream_trailers(3)]