From 292e732abf6ae07d0c82e9e46c154987710a5bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 2 Oct 2017 10:46:45 +0200 Subject: Fix the documentation for the command flow --- doc/src/manual/cowboy_stream.asciidoc | 8 +++++++- src/cowboy_stream.erl | 2 +- 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()} -- cgit v1.2.3