From ce1d8862c093b31a2e3ba0a072b58b697a6b55de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 2 Apr 2013 18:43:37 +0200 Subject: 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. --- guide/req.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guide/req.md') 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 ---------------------- -- cgit v1.2.3