diff options
author | Loïc Hoguin <[email protected]> | 2016-10-04 00:03:19 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-10-04 00:03:19 +0200 |
commit | 52a2ff96e8df1dc64ada5add37810e964a8e7015 (patch) | |
tree | 953dab46e0a662fe9527317749d4ede7af3580eb /src/cow_hpack.erl | |
parent | d53cd5297e1b8baffaf5a649f2c6a9763800c569 (diff) | |
download | cowlib-52a2ff96e8df1dc64ada5add37810e964a8e7015.tar.gz cowlib-52a2ff96e8df1dc64ada5add37810e964a8e7015.tar.bz2 cowlib-52a2ff96e8df1dc64ada5add37810e964a8e7015.zip |
Fix Dialyzer warnings
Diffstat (limited to 'src/cow_hpack.erl')
-rw-r--r-- | src/cow_hpack.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cow_hpack.erl b/src/cow_hpack.erl index 4ddd473..e11b98b 100644 --- a/src/cow_hpack.erl +++ b/src/cow_hpack.erl @@ -32,7 +32,7 @@ -record(state, { size = 0 :: non_neg_integer(), max_size = 4096 :: non_neg_integer(), - dyn_table = [] :: queue:queue({binary(), binary()}) + dyn_table = [] :: [{pos_integer(), {binary(), binary()}}] }). -opaque state() :: #state{}. @@ -548,15 +548,15 @@ resp_decode_test() -> %% Encoding. --spec encode(cow_http:headers()) -> iodata(). +-spec encode(cow_http:headers()) -> {iodata(), state()}. encode(Headers) -> encode(Headers, init(), #{}, []). --spec encode(cow_http:headers(), State) -> iodata() when State::state(). +-spec encode(cow_http:headers(), State) -> {iodata(), State} when State::state(). encode(Headers, State) -> encode(Headers, State, #{}, []). --spec encode(cow_http:headers(), State, opts()) -> iodata() when State::state(). +-spec encode(cow_http:headers(), State, opts()) -> {iodata(), State} when State::state(). encode(Headers, State, Opts) -> encode(Headers, State, Opts, []). |