mirror of
				https://github.com/HoneyryderChuck/httpx.git
				synced 2025-11-04 00:01:41 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			246 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			246 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
require "httpx"
 | 
						|
 | 
						|
URLS  = %w[https://nghttp2.org/httpbin/get] * 1 
 | 
						|
 | 
						|
responses = HTTPX.get(*URLS)
 | 
						|
Array(responses).each(&:raise_for_status)
 | 
						|
puts "Status: \n"
 | 
						|
puts Array(responses).map(&:status)
 | 
						|
puts "Payload: \n"
 | 
						|
puts Array(responses).map(&:to_s)
 | 
						|
 |