Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slowweb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slowweb

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Slow Web - An HTTP Request Governor

DESCRIPTION

Slow Web is a way to limit the number of requests to a domain within a certain period of time.

For example, the GitHub API only allows for 60 requests per minute. Slow Web can monitor the number of calls to that domain and will sleep on the next request that is over the limit.

Slow Web follows the rules of Semantic Versioning.

RUNNING

To install Slow Web, simply install the gem:

$ [sudo] gem install slowweb

And specify the domain to limit.

require 'slowweb'
SlowWeb.limit('github.com', 10, 60)

This restricts the github.com domain to only allowing 10 requests every 60 seconds (or one minute).

CONTRIBUTE

If you'd like to contribute to SlowWeb, start by forking the repository on GitHub:

http://github.com/benbjohnson/slowweb

Then follow these steps to send your changes:

  1. Clone down your fork
  2. Create a topic branch to contain your change
  3. Code
  4. All code must have MiniTest::Unit test coverage.
  5. If you are adding new functionality, document it in the README
  6. If necessary, rebase your commits into logical chunks, without errors
  7. Push the branch up to GitHub
  8. Send me a pull request for your branch

FAQs

Package last updated on 27 Jan 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc