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:
parent
55e98f4f61
commit
233cf43ab9
3 changed files with 47 additions and 33 deletions
|
@ -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
|
||||
----------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue