0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix two incorrect comments in cowboy_req

This commit is contained in:
Loïc Hoguin 2013-05-15 14:53:28 +02:00
parent 76c6aa2183
commit a45787208e

View file

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