Module: Spree::Api::V3::RateLimitHeaders
- Extended by:
- ActiveSupport::Concern
- Included in:
- BaseController
- Defined in:
- app/controllers/concerns/spree/api/v3/rate_limit_headers.rb
Overview
Sets X-RateLimit-Limit, X-RateLimit-Remaining, and Retry-After headers on every Store API response by reading the same cache counter that Rails’ built-in ‘rate_limit` writes to.