Closed CalypsoSys closed 1 year ago
I've just merged #29 which allows you to pass in a proper logging implementation to the HTTP client (based on logr), and I've replaced the two fmt.Println()
calls with logging calls. The default implementation discards all logs so it should have the same effect as this PR but be a bit more flexible.
Those fmt.Println()
calls should never really have been committed in the first place :wink:
I've no idea if the HTTP client actually works fully, I was trying to write one that didn't abuse the http.RoundTripper
interface, which is frowned upon, but I don't think it's actually possible not to.
@bodgit - FYI the HTTP client works as I am currently using it for winrm calls see https://github.com/CalypsoSys/bobwinrmntlm for sample code
Thank you so much for this great library - I plan on using it for winrm and ntlm encrypted messages
The following change is just to allow optional of request messages to the console