- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for process_name (0.08 sec)
-
docs_src/middleware/tutorial001.py
@app.middleware("http") async def add_process_time_header(request: Request, call_next): start_time = time.perf_counter() response = await call_next(request) process_time = time.perf_counter() - start_time response.headers["X-Process-Time"] = str(process_time)
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 13:46:39 UTC 2024 - 365 bytes - Viewed (0)