Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fastapi/fastapi
/ test_head
Function
test_head
tests/test_extra_routes.py:73–76 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
71
72
73
def
test_head():
74
response = client.head(
"/items/foo"
)
75
assert response.status_code == 200, response.text
76
assert response.headers[
"x-fastapi-item-id"
] ==
"foo"
77
78
79
def
test_options():
Callers
nothing calls this directly
Calls
1
head
Method · 0.45
Tested by
no test coverage detected