Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable Transport #17

Open
tarndt opened this issue Jan 8, 2019 · 3 comments
Open

Configurable Transport #17

tarndt opened this issue Jan 8, 2019 · 3 comments
Assignees

Comments

@tarndt
Copy link

tarndt commented Jan 8, 2019

I would like to know if there is a way to configure this library to use a specific http.RoundTripper for its external/HTTP communication? We have a multi-tenant application and each tenant has a specific http.RoundTripper we want requests on the tenants behalf to use.

@JeffreyRichter
Copy link
Member

Yes, this is possible. Our AzCopy utility does this. See https://github.com/Azure/azure-storage-azcopy/blob/f1a1ee3e99053cd0a0a19c471891ffaa6009d9b8/ste/mgr-JobPartMgr.go#L67. There is a plan to make it a bit simpler; see Azure/azure-storage-blob-go#89.

@tarndt
Copy link
Author

tarndt commented Feb 6, 2019

Thanks! Should I leave this open to track making this easier or would you like me to close?

@jiacfan
Copy link
Member

jiacfan commented May 16, 2019

Thanks for the suggestion! And it's nice to have it tracking the enhancement, we'll optimize this with a release.

@jiacfan jiacfan self-assigned this May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants