mirror of
				https://github.com/HoneyryderChuck/httpx.git
				synced 2025-11-04 00:01:41 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			346 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			346 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
module Requests
 | 
						|
  module ChunkedGet
 | 
						|
    def test_http_chunked_get
 | 
						|
      uri = build_uri("/stream-bytes/30?chunk_size=5")
 | 
						|
      response = HTTPX.get(uri)
 | 
						|
      verify_status(response, 200)
 | 
						|
      verify_header(response.headers, "transfer-encoding", "chunked")
 | 
						|
      verify_body_length(response, 30)
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |