Skip to content

Add header info to response object #6

Open
@harlow

Description

@harlow

We return rate limiting data in the HTTP headers:

X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4050
X-RateLimit-Reset: 3300

Lets surface that data in the response object.

response = Clearbit::Person.find(email: '[email protected]')
response.headers["X-Next-Rate-Limit-Window"]

https://gist.github.com/croaky/d12b04fe940130834d12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions