From 4c22bdbcb75ecc8176e0f42899ed8c03729cc628 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 11 Dec 2017 11:00:47 +0100 Subject: Document 2.2 changes and the new stream_trailers function --- doc/src/manual/cowboy_req.stream_body.asciidoc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/src/manual/cowboy_req.stream_body.asciidoc') 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)] -- cgit v1.2.3