Skip to content

Options for throttling requests #1905

@PopGoesTheWza

Description

@PopGoesTheWza

What problem are you trying to solve?

I want to define a got instance where requests are throttled (i.e. 30 requests per minutes). Currently I can achieve this using p-throttle to wrap each simple got requests where they occur, and I haven't find a clean way to throttle paginate.

Describe the feature

I think it would be nice if got had throttling options "à la" p-throttle so that it is define at the got instance level.

Maybe there is already a way to achieve this, but I failed at finding it through the docs, issues and discussions.

Checklist

  • I have read the documentation and made sure this feature doesn't already exist.

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