MCPcopy
hub / github.com/fastapi/fastapi / second_modifier

Function second_modifier

tests/test_response_dependency.py:79–83  ·  view source on GitHub ↗
(
        response: Annotated[Response, Depends(first_modifier)],
    )

Source from the content-addressed store, hash-verified

77 return response
78
79 def second_modifier(
80 response: Annotated[Response, Depends(first_modifier)],
81 ) -> Response:
82 response.headers["X-Second"] = "2"
83 return response
84
85 @app.get("/")
86 def endpoint(response: Annotated[Response, Depends(second_modifier)]):

Callers

nothing calls this directly

Calls 1

DependsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…