meraki / dashboard-api-go

Dashboard API for Golang
MIT License
19 stars 7 forks source link

Use Default HTTP Client #13

Closed ryan-berger closed 1 year ago

ryan-berger commented 1 year ago

Description

Two main changes:

As library authors, we should strive to keep the library defaults as simple as possible, while maximizing the amount of configuration end-users can have.

By making the retry client the default HTTP client for the library, it would require us to expose the entire retry client's API surface, which shouldn't be our goal. Retry logic should be handled by the end user, and we can recommend to them that they use HashiCorp's retry library (which is what we at Starbucks have been using internally).

Fixes #5

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

We've merged this change into our fork of the Terraform library and run our acceptance tests, and nothing seems to be of issue.

Checklist: