0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 20:50:24 +00:00

Remove cowboy_req:to_list/1

This commit is contained in:
Loïc Hoguin 2016-06-22 10:35:20 +02:00
parent 63c7d05eb2
commit 34e5f5853a

View file

@ -86,7 +86,6 @@
-export([set/2]).
-export([set_bindings/4]).
-export([lock/1]).
-export([to_list/1]).
-type cookie_opts() :: cow_cookie:cookie_opts().
-export_type([cookie_opts/0]).
@ -1071,10 +1070,6 @@ set_bindings(HostInfo, PathInfo, Bindings, Req) ->
lock(Req) ->
Req#http_req{resp_state=locked}.
-spec to_list(req()) -> [{atom(), any()}].
to_list(Req) ->
lists:zip(record_info(fields, http_req), tl(tuple_to_list(Req))).
%% Internal.
%% We don't match on "keep-alive" since it is the default value.