diff options
author | Loïc Hoguin <[email protected]> | 2019-10-10 15:03:27 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-10-10 15:03:27 +0200 |
commit | a551f8b71bcd61c34ef244fab1a9f199d252fb44 (patch) | |
tree | cefc5a069bfd37be98b476c9517d6f5773ae497a /src/cow_http_te.erl | |
parent | 02a889d7a640d0ac990b3b7c6bcc05c4f26a89fa (diff) | |
download | cowlib-a551f8b71bcd61c34ef244fab1a9f199d252fb44.tar.gz cowlib-a551f8b71bcd61c34ef244fab1a9f199d252fb44.tar.bz2 cowlib-a551f8b71bcd61c34ef244fab1a9f199d252fb44.zip |
Fix cow_http_te:decode_ret() type
Diffstat (limited to 'src/cow_http_te.erl')
-rw-r--r-- | src/cow_http_te.erl | 5 |
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"). |