aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_te.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cow_http_te.erl')
-rw-r--r--src/cow_http_te.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cow_http_te.erl b/src/cow_http_te.erl
index 59f4b86..57d5167 100644
--- a/src/cow_http_te.erl
+++ b/src/cow_http_te.erl
@@ -25,13 +25,14 @@
%% The state type is the same for both identity and chunked.
-type state() :: {non_neg_integer(), non_neg_integer()}.
+-export_type([state/0]).
-type decode_ret() :: more
| {more, Data::binary(), state()}
| {more, Data::binary(), RemLen::non_neg_integer(), state()}
| {more, Data::binary(), Rest::binary(), state()}
- | {done, TotalLen::non_neg_integer(), Rest::binary()}
- | {done, Data::binary(), TotalLen::non_neg_integer(), Rest::binary()}.
+ | {done, HasTrailers::trailers | no_trailers, Rest::binary()}
+ | {done, Data::binary(), HasTrailers::trailers | no_trailers, Rest::binary()}.
-export_type([decode_ret/0]).
-include("cow_parse.hrl").