mirror of
				https://github.com/HoneyryderChuck/httpx.git
				synced 2025-11-04 00:01:41 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			243 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			243 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
module Requests
 | 
						|
  module Head 
 | 
						|
    def test_http_head
 | 
						|
      uri = build_uri("/")
 | 
						|
      response = HTTPX.head(uri)
 | 
						|
      verify_status(response.status, 200)
 | 
						|
      verify_body_length(response, 0)
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |