Skip to content

Add informational headers for rate-limit  #303

Open
@anupsingh3292

Description

@anupsingh3292

The suggestion I`ve got from GPT and it would be better to have extra informational headers.

X-RateLimit-Limit: This header indicates the maximum number of requests allowed within the given time window (e.g., per minute, per hour).

X-RateLimit-Remaining: This header shows how many requests the client has remaining within the current time window. It helps the client keep track of their usage.

X-RateLimit-Reset: This header specifies the timestamp (usually in Unix time) when the rate limit will reset, allowing the client to know when they can make more requests.

X-RateLimit-RETRY-AFTER Retry after a given amount of time. timestamp (usually in Unix time).

other changes will be appreciated. Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions