mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-16 00:01:48 -04:00
14 lines
297 B
Ruby
14 lines
297 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Requests
|
|
module Head
|
|
def test_http_head
|
|
uri = build_uri("/")
|
|
response = HTTPX.head(uri)
|
|
assert response.status == 200, "status is unexpected"
|
|
assert response.body.to_s.bytesize == 0, "there should be no body"
|
|
end
|
|
end
|
|
end
|
|
|