|
@@ -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().
|