mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
10 lines
207 B
Ruby
10 lines
207 B
Ruby
require "httpx"
|
|
|
|
# URLS = %w[https://nghttp2.org/httpbin/get] * 1
|
|
URLS = %w[http://www.google.com] * 1
|
|
|
|
HTTPX.plugin(:retries).wrap do |session|
|
|
session.get(*URLS)
|
|
sleep 60 * 5
|
|
session.get(*URLS)
|
|
end |