aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorEric Meadows-Jönsson <[email protected]>2018-05-16 13:28:49 +0200
committerLoïc Hoguin <[email protected]>2018-06-25 11:44:38 +0200
commitf08f4610a08a187c573da2273494a27894bea54c (patch)
tree2bf216f383a66ac72cdebcb8740a6c26c9bad509 /doc/src
parent69451dd98d99cf8d9f43ba44d4f30b34fdf3eb6c (diff)
downloadcowboy-f08f4610a08a187c573da2273494a27894bea54c.tar.gz
cowboy-f08f4610a08a187c573da2273494a27894bea54c.tar.bz2
cowboy-f08f4610a08a187c573da2273494a27894bea54c.zip
Add streaming without chunking for HTTP/1.1
If content-length is set in the response headers we can skip chunked transfer-encoding.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/manual/cowboy_req.stream_reply.asciidoc4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/manual/cowboy_req.stream_reply.asciidoc b/doc/src/manual/cowboy_req.stream_reply.asciidoc
index 74c1768..82f49c6 100644
--- a/doc/src/manual/cowboy_req.stream_reply.asciidoc
+++ b/doc/src/manual/cowboy_req.stream_reply.asciidoc
@@ -45,7 +45,9 @@ more efficiently.
The streaming method varies depending on the protocol being
used. HTTP/2 will use the usual DATA frames. HTTP/1.1 will
-use chunked transfer-encoding. HTTP/1.0 will send the body
+use chunked transfer-encoding, if the content-length
+response header is set the body will be sent without chunked
+chunked transfer-encoding. HTTP/1.0 will send the body
unmodified and close the connection at the end if no
content-length was set.