Skip to content

Add the Limiter and LimitedTransport types #1

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

Merged
merged 1 commit into from
Mar 2, 2025
Merged

Add the Limiter and LimitedTransport types #1

merged 1 commit into from
Mar 2, 2025

Conversation

bobg
Copy link
Owner

@bobg bobg commented Mar 2, 2025

This PR adds Limiter, an interface that abstracts *"golang.org/x/time/rate".Limiter, and LimitedTransport, which can be used in an HTTP client to limit the rate of requests it makes.

@bobg bobg merged commit fdcd237 into master Mar 2, 2025
1 check passed
@bobg bobg deleted the bobg/limiter branch March 2, 2025 16:01
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.

1 participant