Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-chi/httprate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.0
Choose a base ref
...
head repository: go-chi/httprate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.12.0
Choose a head ref
  • 17 commits
  • 16 files changed
  • 2 contributors

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    132dfa6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    900c7a6 View commit details
    Browse the repository at this point in the history
  3. Add tests for X-RateLimit-* headers, Fix X-RateLimit-Remaining header (

    …#28)
    
    * Add tests for X-RateLimit-* headers
    
    * Fix X-RateLimit-Remaining header
    VojtechVitek authored Jul 22, 2024
    Configuration menu
    Copy the full SHA
    be84c8b View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. Configuration menu
    Copy the full SHA
    fb7d30a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    41014cd View commit details
    Browse the repository at this point in the history
  3. 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
    VojtechVitek authored Jul 24, 2024
    Configuration menu
    Copy the full SHA
    2d103f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6352918 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    56b390b View commit details
    Browse the repository at this point in the history
  6. Add benchmark for localCounter (#32)

    * Add benchmark for localCounter
    
    * Run benchmarks in CI
    
    * Try to fix missing bench files
    
    * Provide more results for bechstat
    VojtechVitek authored Jul 24, 2024
    Configuration menu
    Copy the full SHA
    7228fd5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c6b43ff View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Configuration menu
    Copy the full SHA
    bff9ca6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6678579 View commit details
    Browse the repository at this point in the history
  3. 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.
    VojtechVitek authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    7fd4d55 View commit details
    Browse the repository at this point in the history
  4. Improve example, add go module (#37)

    * Improve example, add go module
    
    * CI: Build example
    VojtechVitek authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    4afd620 View commit details
    Browse the repository at this point in the history
  5. Upgrade to actions/setup-go@v5, improve README (#38)

    * Upgrade to actions/setup-go@v5
    
    * Improve README
    VojtechVitek authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    05a79e9 View commit details
    Browse the repository at this point in the history
  6. Export in-memory counter for external use (#39)

    httprate.NewLocalLimitCounter(windowLength)
    VojtechVitek authored Jul 25, 2024
    Configuration menu
    Copy the full SHA
    9e50ad6 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6aa26b0 View commit details
    Browse the repository at this point in the history
Loading