mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
14 lines
353 B
Ruby
14 lines
353 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.status, 200)
|
|
verify_header(response.headers, "transfer-encoding", "chunked")
|
|
verify_body_length(response, 30)
|
|
end
|
|
end
|
|
end
|