gophercloud / utils

Apache License 2.0
20 stars 55 forks source link

clientconfig: Add ability to specify http client #99

Closed jtopjian closed 4 years ago

jtopjian commented 4 years ago

This commit enables the Gophercloud ProviderClient's internal HTTP client to be customized by specifying one in clientconfig's ClientOpts. This can be used to customize a wide variety of client interaction.

For #98

@niedbalski while reviewing https://github.com/openstack-exporter/openstack-exporter/pull/59 and looking at the changes you needed to make to account for our discussion back at https://github.com/gophercloud/gophercloud/issues/1726, I think I came up with a solution that might help. Please let me know if this would help simplify things for you.