- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for modify_response (0.05 seconds)
-
tests/test_response_dependency.py
"""Response type hint should work with Annotated[Response, Depends(...)].""" app = FastAPI() def modify_response(response: Response) -> Response: response.headers["X-Custom"] = "modified" return response @app.get("/") def endpoint(response: Annotated[Response, Depends(modify_response)]): return {"status": "ok"} client = TestClient(app) resp = client.get("/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 05 18:23:16 GMT 2026 - 5.2K bytes - Click Count (0) -
api/go1.8.txt
pkg net/http/httptrace, type ClientTrace struct, TLSHandshakeDone func(tls.ConnectionState, error) pkg net/http/httptrace, type ClientTrace struct, TLSHandshakeStart func() pkg net/http/httputil, type ReverseProxy struct, ModifyResponse func(*http.Response) error pkg net/http, method (*Server) Close() error pkg net/http, method (*Server) Shutdown(context.Context) error pkg net/http, type Pusher interface { Push }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Dec 21 05:25:57 GMT 2016 - 16.3K bytes - Click Count (0)