aboutsummaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-04-02 18:43:37 +0200
committerLoïc Hoguin <[email protected]>2013-04-02 19:40:38 +0200
commitce1d8862c093b31a2e3ba0a072b58b697a6b55de (patch)
tree222bf4661a705d803d524d870e945aaa6f712b34 /guide
parent66f7c15c4d42c655f63a94bb972e66a8e9dbc334 (diff)
downloadcowboy-ce1d8862c093b31a2e3ba0a072b58b697a6b55de.tar.gz
cowboy-ce1d8862c093b31a2e3ba0a072b58b697a6b55de.tar.bz2
cowboy-ce1d8862c093b31a2e3ba0a072b58b697a6b55de.zip
Replace init_stream/5 with stream_body/2
This allows us to change the max chunk length on a per chunk basis instead of for the whole stream. It's also much easier to use this way even if we don't want to change the chunk size.
Diffstat (limited to 'guide')
-rw-r--r--guide/req.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guide/req.md b/guide/req.md
index f627737..13b5334 100644
--- a/guide/req.md
+++ b/guide/req.md
@@ -104,9 +104,9 @@ and `body_qs/2` will return `{error, badlength}`. If the request
contains chunked body, `body/1`, `body/2`, `body_qs/1`
and `body_qs/2` will return `{error, chunked}`.
If you get either of the above two errors, you will want to
-handle the body of the request using `stream_body/1` and
-`skip_body/1`, with the streaming process optionally
-initialized using `init_stream/4` or `init_stream/5`.
+handle the body of the request using `stream_body/1`,
+`stream_body/2` and `skip_body/1`, with the streaming process
+optionally initialized using `init_stream/4`.
Multipart request body
----------------------