diff options
Diffstat (limited to 'src/cowboy_req.erl')
-rw-r--r-- | src/cowboy_req.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index a8da0e5..6eb14c7 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -608,7 +608,7 @@ stream_body(Req) -> %% for each streamed part, and {done, Req} when it's finished streaming. %% %% You can limit the size of the chunks being returned by using the -%% second argument which is the size in bytes. It defaults to 1000000 bytes. +%% first argument which is the size in bytes. It defaults to 1000000 bytes. -spec stream_body(non_neg_integer(), Req) -> {ok, binary(), Req} | {done, Req} | {error, atom()} when Req::req(). stream_body(MaxLength, Req=#http_req{body_state=waiting, version=Version, @@ -787,9 +787,6 @@ body_qs(MaxBodyLength, Req) -> %% this function returns <em>{headers, Headers}</em> followed by a sequence of %% <em>{body, Data}</em> tuples and finally <em>end_of_part</em>. When there %% is no part to parse anymore, <em>eof</em> is returned. -%% -%% If the request Content-Type is not a multipart one, <em>{error, badarg}</em> -%% is returned. -spec multipart_data(Req) -> {headers, cowboy_http:headers(), Req} | {body, binary(), Req} | {end_of_part | eof, Req} when Req::req(). |