tesla icon indicating copy to clipboard operation
tesla copied to clipboard

Optionally provide a custom http.Client

Open nealey opened this issue 5 years ago • 2 comments

I added this so I could get out of Google Compute Engine, but this could also be helpful for people behind proxies or using other unusual configurations. This simply adds a new auth.NewClientWithHttpClient method, everything else remains the same.

nealey avatar Aug 04 '18 18:08 nealey

Should probably not accept a client struct but rather an interface to allow testability.

andig avatar Mar 29 '20 11:03 andig

We've implemented this in https://github.com/bogosj/tesla

andig avatar Oct 19 '21 09:10 andig