mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Remove cowboy_req:append_buffer/2
This commit is contained in:
parent
0e68b2a3f5
commit
8905cc44f2
2 changed files with 2 additions and 23 deletions
|
@ -81,7 +81,6 @@
|
|||
-export([ensure_response/2]).
|
||||
|
||||
%% Private setter/getter API.
|
||||
-export([append_buffer/2]).
|
||||
-export([get/2]).
|
||||
-export([set/2]).
|
||||
|
||||
|
@ -997,10 +996,6 @@ ensure_response(#http_req{}, _) ->
|
|||
|
||||
%% Private setter/getter API.
|
||||
|
||||
-spec append_buffer(binary(), Req) -> Req when Req::req().
|
||||
append_buffer(Suffix, Req=#http_req{buffer=Buffer}) ->
|
||||
Req#http_req{buffer= << Buffer/binary, Suffix/binary >>}.
|
||||
|
||||
-spec get(atom(), req()) -> any(); ([atom()], req()) -> any().
|
||||
get(List, Req) when is_list(List) ->
|
||||
[g(Atom, Req) || Atom <- List];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue