Any recommended http client with refresh access token when expired?

I need to use an HTTP client to make some calls (about 10~100 per second).
I’m using a Bearer token that expires after 30 minutes.

Any recommended HTTP client that does that?
Currently I’m thinking to use the default HTTP client (with timeout), and some TTLcache implementation I find.

Any suggestions?

Are you using oauth? You can look into https://github.com/golang/oauth2 which refreshes tokens for you.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.