You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In debugging some production issues I came to find it necessary to be able to pass in call options for clj-http. Things like insecure?, socket-timeout, etc. I ended up pulling the logic in the http client out and calling private vars. It'd be great if I could either specify some default opts on the client itself (so as to not have to effect the top-level defprotocol) or pass them in somehow. This would probably eliminate all of the instances that I find myself having to pull the guts out of vault.http.
The text was updated successfully, but these errors were encountered:
A workaround I came up with since writing this which might be more appropriate is using the with-middleware functionality present in clj-http. That ends up providing a little more flexibility, but it's definitely not as plug and play as an opt pass in.
Motivation
In debugging some production issues I came to find it necessary to be able to pass in call options for
clj-http
. Things likeinsecure?
,socket-timeout
, etc. I ended up pulling the logic in the http client out and calling private vars. It'd be great if I could either specify some default opts on the client itself (so as to not have to effect the top-level defprotocol) or pass them in somehow. This would probably eliminate all of the instances that I find myself having to pull the guts out ofvault.http
.The text was updated successfully, but these errors were encountered: