From 95c915dfaa7bb1d5b0da8f532d300c6c7bd86629 Mon Sep 17 00:00:00 2001 From: pmyarchon Date: Thu, 18 Jul 2013 12:16:03 +0400 Subject: Slight docs fix in cowboy_req.erl --- src/cowboy_req.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index 5ebcf99..66abcf8 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -791,9 +791,9 @@ body_qs(MaxBodyLength, Req) -> %% @doc Return data from the multipart parser. %% %% Use this function for multipart streaming. For each part in the request, -%% this function returns {headers, Headers} followed by a sequence of -%% {body, Data} tuples and finally end_of_part. When there -%% is no part to parse anymore, eof is returned. +%% this function returns {headers, Headers, Req} followed by a sequence of +%% {body, Data, Req} tuples and finally {end_of_part, Req}. When there +%% is no part to parse anymore, {eof, Req} is returned. -spec multipart_data(Req) -> {headers, cowboy:http_headers(), Req} | {body, binary(), Req} | {end_of_part | eof, Req} when Req::req(). @@ -832,7 +832,7 @@ multipart_data(Req, Length, {more, Parser}) when Length > 0 -> %% @doc Skip a part returned by the multipart parser. %% %% This function repeatedly calls multipart_data/1 until -%% end_of_part or eof is parsed. +%% {end_of_part, Req} or {eof, Req} is parsed. -spec multipart_skip(Req) -> {ok, Req} when Req::req(). multipart_skip(Req) -> case multipart_data(Req) of -- cgit v1.2.3