-
Notifications
You must be signed in to change notification settings - Fork 21
Comparing changes
Open a pull request
base repository: go-chi/httprate
base: v0.9.0
head repository: go-chi/httprate
compare: v0.12.0
- 17 commits
- 16 files changed
- 2 contributors
Commits on Jul 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 132dfa6 - Browse repository at this point
Copy the full SHA 132dfa6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 900c7a6 - Browse repository at this point
Copy the full SHA 900c7a6View commit details -
Add tests for X-RateLimit-* headers, Fix X-RateLimit-Remaining header (…
…#28) * Add tests for X-RateLimit-* headers * Fix X-RateLimit-Remaining header
Configuration menu - View commit details
-
Copy full SHA for be84c8b - Browse repository at this point
Copy the full SHA be84c8bView commit details
Commits on Jul 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fb7d30a - Browse repository at this point
Copy the full SHA fb7d30aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41014cd - Browse repository at this point
Copy the full SHA 41014cdView commit details -
Allow omitting or customizing response headers (#31)
* Allow omitting or customizing response headers httprate.Limit( 1000, time.Minute, httprate.WithResponseHeaders(httprate.ResponseHeaders{ Limit: "RateLimit-Limit", Remaining: "RateLimit-Remaining", Increment: "", // omit header Reset: "RateLimit-Reset", RetryAfter: "Retry-After", }), ) * Fix tests for '' header * Fix omitting headers * Improve test readability
Configuration menu - View commit details
-
Copy full SHA for 2d103f0 - Browse repository at this point
Copy the full SHA 2d103f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6352918 - Browse repository at this point
Copy the full SHA 6352918View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56b390b - Browse repository at this point
Copy the full SHA 56b390bView commit details -
Add benchmark for localCounter (#32)
* Add benchmark for localCounter * Run benchmarks in CI * Try to fix missing bench files * Provide more results for bechstat
Configuration menu - View commit details
-
Copy full SHA for 7228fd5 - Browse repository at this point
Copy the full SHA 7228fd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6b43ff - Browse repository at this point
Copy the full SHA c6b43ffView commit details
Commits on Jul 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bff9ca6 - Browse repository at this point
Copy the full SHA bff9ca6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6678579 - Browse repository at this point
Copy the full SHA 6678579View commit details -
Remove unused func argument (#36)
The in-memory counter doesn't require time window to be hashed anymore, since we started using two sliding counter hash maps instead of a single hash map.
Configuration menu - View commit details
-
Copy full SHA for 7fd4d55 - Browse repository at this point
Copy the full SHA 7fd4d55View commit details -
Improve example, add go module (#37)
* Improve example, add go module * CI: Build example
Configuration menu - View commit details
-
Copy full SHA for 4afd620 - Browse repository at this point
Copy the full SHA 4afd620View commit details -
Upgrade to actions/setup-go@v5, improve README (#38)
* Upgrade to actions/setup-go@v5 * Improve README
Configuration menu - View commit details
-
Copy full SHA for 05a79e9 - Browse repository at this point
Copy the full SHA 05a79e9View commit details -
Export in-memory counter for external use (#39)
httprate.NewLocalLimitCounter(windowLength)
Configuration menu - View commit details
-
Copy full SHA for 9e50ad6 - Browse repository at this point
Copy the full SHA 9e50ad6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6aa26b0 - Browse repository at this point
Copy the full SHA 6aa26b0View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.9.0...v0.12.0