mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
12 lines
220 B
Ruby
12 lines
220 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "httpx"
|
|
|
|
URL = "https://blog.alteroot.org"
|
|
# URL = "https://www.google.com/"
|
|
|
|
HTTPX.with(max_concurrent_requests: 1) do |client|
|
|
puts client.get(URL, URL, URL).map(&:status)
|
|
end
|
|
|