MCPcopy
hub / github.com/encode/httpx / test_head

Function test_head

tests/client/test_client.py:156–160  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

154
155
156def test_head(server):
157 with httpx.Client() as client:
158 response = client.head(server.url)
159 assert response.status_code == 200
160 assert response.reason_phrase == "OK"
161
162
163def test_put(server):

Callers

nothing calls this directly

Calls 1

headMethod · 0.45

Tested by

no test coverage detected