Skip to content

Added configurable timeout for API requests

Choose a tag to compare

@crawlbase crawlbase released this 26 Jun 14:13

This release adds support for setting a custom timeout on API requests, which helps avoid unexpected timeouts (see #3).

What's Changed:

  • Added timeout option to Crawlbase::API initializer.
  • The timeout sets both open and read timeouts for Net::HTTP.
  • Default timeout is 90 seconds, based on Crawlbase’s recommendation.
  • Added tests to make sure the timeout works as expected.

Let us know if you run into anything.