Closed brucify closed 3 years ago
Possibility to give hackney:request/5 additional options, without having to give a whole function in to replace {request, ?DEFAULT_REQUEST_FUN}.
hackney:request/5
{request, ?DEFAULT_REQUEST_FUN}
Currently ?DEFAULT_REQUEST_FUN is hardcoded to use two specific options when calling hackney:request/5.
?DEFAULT_REQUEST_FUN
-define(DEFAULT_REQUEST_FUN, fun katt_callbacks:request/3).
In katt_util.erl:
katt_util.erl
external_http_request(Url, Method, Hdrs, Body, Timeout, []) -> ... Options = [ {recv_timeout, Timeout} , {insecure, true} ], case hackney:request(Method, BUrl, BHdrs, Body, Options) of
Possibility to give
hackney:request/5
additional options, without having to give a whole function in to replace{request, ?DEFAULT_REQUEST_FUN}
.Currently
?DEFAULT_REQUEST_FUN
is hardcoded to use two specific options when callinghackney:request/5
.In
katt_util.erl
: