mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -04:00
13 lines
238 B
Ruby
13 lines
238 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Requests
|
|
module Head
|
|
def test_http_head
|
|
uri = build_uri("/get")
|
|
response = HTTPX.head(uri)
|
|
verify_status(response, 200)
|
|
verify_body_length(response, 0)
|
|
end
|
|
end
|
|
end
|