0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

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.
This commit is contained in:
Loïc Hoguin 2013-03-05 17:49:58 +01:00
parent 55e98f4f61
commit 233cf43ab9
3 changed files with 47 additions and 33 deletions

View file

@ -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
----------------------