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

Function test_head

tests/client/test_async_client.py:139–143  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

137
138@pytest.mark.anyio
139async def test_head(server):
140 async with httpx.AsyncClient() as client:
141 response = await client.head(server.url)
142 assert response.status_code == 200
143 assert response.text == ""
144
145
146@pytest.mark.anyio

Callers

nothing calls this directly

Calls 1

headMethod · 0.45

Tested by

no test coverage detected