Package net.ygbstudio.jbrave.api.rate


package net.ygbstudio.jbrave.api.rate
Records that decode the rate-limit HTTP headers returned by the Brave Search API.

Each type extracts one of the X-RateLimit-* response headers (Limit, Policy, Remaining, and Reset) from a HttpResponse and exposes it as a structured value. They are used by the execution layer to honor the server's backoff guidance on HTTP 429 responses.

Author:
Yoham Gabriel Barboza B. (YGBStudio)
  • Record Classes
    Class
    Description
    Shows the maximum number of requests allowed for each time window in your plan.
    Provides the complete policy specification including time window sizes.
    Indicates how many requests you can still make within each time window before hitting the limit.
    Shows when each quota window will reset, expressed in seconds from now.