Browse Source

Fix the documentation for the command flow

Loïc Hoguin 7 years ago
parent
commit
292e732abf
2 changed files with 8 additions and 2 deletions
  1. 7 1
      doc/src/manual/cowboy_stream.asciidoc
  2. 1 1
      src/cowboy_stream.erl

+ 7 - 1
doc/src/manual/cowboy_stream.asciidoc

@@ -145,7 +145,13 @@ any server push mechanism.
 
 
 === flow
 === 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
 === spawn
 
 

+ 1 - 1
src/cowboy_stream.erl

@@ -34,7 +34,7 @@
 	| {data, fin(), iodata()}
 	| {data, fin(), iodata()}
 	| {push, binary(), binary(), binary(), inet:port_number(),
 	| {push, binary(), binary(), binary(), inet:port_number(),
 		binary(), binary(), cowboy:http_headers()}
 		binary(), binary(), cowboy:http_headers()}
-	| {flow, auto | integer()}
+	| {flow, pos_integer()}
 	| {spawn, pid(), timeout()}
 	| {spawn, pid(), timeout()}
 	| {error_response, cowboy:http_status(), cowboy:http_headers(), iodata()}
 	| {error_response, cowboy:http_status(), cowboy:http_headers(), iodata()}
 	| {switch_protocol, cowboy:http_headers(), module(), state()}
 	| {switch_protocol, cowboy:http_headers(), module(), state()}