2017-12-11 14:59:40 +00:00

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