aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()}