aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-10-10 15:53:26 +0200
committerLoïc Hoguin <[email protected]>2019-10-10 16:04:28 +0200
commita73004e966a45b78d81168bb03c68acdd7bfea65 (patch)
tree892f58ab533433fd9cf39180a85c8ce3ec2651cd /src/cowboy_http.erl
parentecb39eea103b36f39c3aaf91e02564e95a9c7c01 (diff)
downloadcowboy-a73004e966a45b78d81168bb03c68acdd7bfea65.tar.gz
cowboy-a73004e966a45b78d81168bb03c68acdd7bfea65.tar.bz2
cowboy-a73004e966a45b78d81168bb03c68acdd7bfea65.zip
Fix a number of low hanging todos
Diffstat (limited to 'src/cowboy_http.erl')
-rw-r--r--src/cowboy_http.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cowboy_http.erl b/src/cowboy_http.erl
index 8ff8ae2..f128a44 100644
--- a/src/cowboy_http.erl
+++ b/src/cowboy_http.erl
@@ -78,8 +78,8 @@
-record(ps_body, {
length :: non_neg_integer() | undefined,
received = 0 :: non_neg_integer(),
- transfer_decode_fun :: fun(), %% @todo better type
- transfer_decode_state :: any() %% @todo better type
+ transfer_decode_fun :: fun((binary(), cow_http_te:state()) -> cow_http_te:decode_ret()),
+ transfer_decode_state :: cow_http_te:state()
}).
-record(stream, {
@@ -1275,8 +1275,6 @@ stream_terminate(State0=#state{opts=Opts, in_streamid=InStreamID, in_state=InSta
NextOutStreamID = OutStreamID + 1,
case lists:keyfind(NextOutStreamID, #stream.id, Streams) of
false ->
- %% @todo This is clearly wrong, if the stream is gone we need to check if
- %% there used to be such a stream, and if there was to send an error.
State#state{out_streamid=NextOutStreamID, out_state=wait};
#stream{queue=Commands} ->
%% @todo Remove queue from the stream.