From 233cf43ab9c6c16d22e14039a79606fc935693d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 5 Mar 2013 17:49:58 +0100 Subject: Make streamed chunk size configurable Defaults to a maximum of 1000000 bytes. Also standardize the te_identity and te_chunked decoding functions. Now they both try to read as much as possible (up to the limit), making body reading much faster when not using chunked encoding. --- guide/req.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'guide/req.md') diff --git a/guide/req.md b/guide/req.md index e13d3a5..8fd854a 100644 --- a/guide/req.md +++ b/guide/req.md @@ -94,7 +94,8 @@ If you know the request contains a body, and that it is of appropriate size, then you can read it directly with either `body/1` or `body_qs/1`. Otherwise, you will want to stream it with `stream_body/1` and `skip_body/1`, with -the streaming process optionally initialized using `init_stream/4`. +the streaming process optionally initialized using `init_stream/4` +or `init_stream/5`. Multipart request body ---------------------- -- cgit v1.2.3