Skip to content

Optionally provide a custom http.Client#21

Open
nealey wants to merge 2 commits into
jsgoecke:masterfrom
nealey:master
Open

Optionally provide a custom http.Client#21
nealey wants to merge 2 commits into
jsgoecke:masterfrom
nealey:master

Conversation

@nealey
Copy link
Copy Markdown

@nealey nealey commented Aug 4, 2018

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.

@andig
Copy link
Copy Markdown

andig commented Mar 29, 2020

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

@andig andig mentioned this pull request Jan 30, 2021
@andig
Copy link
Copy Markdown

andig commented Oct 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants