aboutsummaryrefslogtreecommitdiffstats
path: root/test/ws_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-03-29 01:14:44 +0200
committerLoïc Hoguin <[email protected]>2012-04-01 21:25:55 +0200
commit95e05d822f46e791a919f4e966879b4827989669 (patch)
tree7cec66644ebea5d3711fea6232bc441fb713723d /test/ws_SUITE.erl
parentba75e8b8ae5629ea24815f28da944a489bfa0a3e (diff)
downloadcowboy-95e05d822f46e791a919f4e966879b4827989669.tar.gz
cowboy-95e05d822f46e791a919f4e966879b4827989669.tar.bz2
cowboy-95e05d822f46e791a919f4e966879b4827989669.zip
Add chunked transfer encoding support and rework the body reading API
Introduces 3 low level functions and updates the existing higher levels functions. The new primitives are has_body/1, body_length/1 and stream_body/1. In addition to that, a helper function init_stream/4 has been added. Streaming a body implies to decode the Transfer-Encoding and Content-Encoding used for the body. By default, Cowboy will try to figure out what was used and decode them properly. You can override this if you want to disable this behavior or simply support more encodings by calling the init_stream/4 function before you start streaming the body.
Diffstat (limited to 'test/ws_SUITE.erl')
0 files changed, 0 insertions, 0 deletions