Skip to content

Support RateLimit draft #81

@ioggstream

Description

@ioggstream

I wish

Sphinx to support this RateLimit Draft proposal (eg. via a configuration parameter):

The proposal has been already implemented by Kong and RedHat 3Scale API Gateway.

Differences respect to the current implementation

The current implementation returns X-RateLimit-Reset with a unix timestamp.
This approach is not aligned with the Retry-After http header and is subject to clock skew from clients.

To fix it, we should just change the following line - eg. via a configuration parameter -

headers["X-Ratelimit-Reset"] = append(headers["X-Ratelimit-Reset"], int64ToString(status.Reset.Unix()))
subtracting the current date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions