diff options
author | Loïc Hoguin <[email protected]> | 2017-12-13 12:40:00 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-12-13 12:40:00 +0100 |
commit | 34473bc247138fb66d4a6739317340f4e7197625 (patch) | |
tree | 668ef651be486b5c459b901cfcbbdd1a08631574 /src/cowboy_stream.erl | |
parent | 576e2d21118829dbc018836c87dddb9037e9d3bf (diff) | |
download | cowboy-34473bc247138fb66d4a6739317340f4e7197625.tar.gz cowboy-34473bc247138fb66d4a6739317340f4e7197625.tar.bz2 cowboy-34473bc247138fb66d4a6739317340f4e7197625.zip |
Fix Dialyzer warnings
Diffstat (limited to 'src/cowboy_stream.erl')
-rw-r--r-- | src/cowboy_stream.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cowboy_stream.erl b/src/cowboy_stream.erl index a44d3ae..1a1031e 100644 --- a/src/cowboy_stream.erl +++ b/src/cowboy_stream.erl @@ -29,9 +29,11 @@ :: {response, cowboy:http_status(), cowboy:http_headers(), cowboy_req:resp_body()}. -export_type([resp_command/0]). --type commands() :: [resp_command() +-type commands() :: [{inform, cowboy:http_status(), cowboy:http_headers()} + | resp_command() | {headers, cowboy:http_status(), cowboy:http_headers()} | {data, fin(), iodata()} + | {trailers, cowboy:http_headers()} | {push, binary(), binary(), binary(), inet:port_number(), binary(), binary(), cowboy:http_headers()} | {flow, pos_integer()} |