aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-10-02 10:46:45 +0200
committerLoïc Hoguin <[email protected]>2017-10-02 10:46:45 +0200
commit292e732abf6ae07d0c82e9e46c154987710a5bdf (patch)
tree1a13c1cf93769ded1d90426fca860631c3e0045a
parentbec019dce545872f7c7e5da520e46febe32a381f (diff)
downloadcowboy-292e732abf6ae07d0c82e9e46c154987710a5bdf.tar.gz
cowboy-292e732abf6ae07d0c82e9e46c154987710a5bdf.tar.bz2
cowboy-292e732abf6ae07d0c82e9e46c154987710a5bdf.zip
Fix the documentation for the command flow
-rw-r--r--doc/src/manual/cowboy_stream.asciidoc8
-rw-r--r--src/cowboy_stream.erl2
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/src/manual/cowboy_stream.asciidoc b/doc/src/manual/cowboy_stream.asciidoc
index de4c8e0..ffdfdae 100644
--- a/doc/src/manual/cowboy_stream.asciidoc
+++ b/doc/src/manual/cowboy_stream.asciidoc
@@ -145,7 +145,13 @@ any server push mechanism.
=== flow
-TODO
+[source,erlang]
+----
+{flow, pos_integer()}
+----
+
+Request more data to be read from the request body. The
+exact behavior depends on the protocol.
=== spawn
diff --git a/src/cowboy_stream.erl b/src/cowboy_stream.erl
index b0a55f8..f360a08 100644
--- a/src/cowboy_stream.erl
+++ b/src/cowboy_stream.erl
@@ -34,7 +34,7 @@
| {data, fin(), iodata()}
| {push, binary(), binary(), binary(), inet:port_number(),
binary(), binary(), cowboy:http_headers()}
- | {flow, auto | integer()}
+ | {flow, pos_integer()}
| {spawn, pid(), timeout()}
| {error_response, cowboy:http_status(), cowboy:http_headers(), iodata()}
| {switch_protocol, cowboy:http_headers(), module(), state()}